The token for 'publish date' doesn't seem to work for me

Hey, all! I’ve created an HTML template for emails, and it works great with one exception: It won’t automatically include the publish date.

The idea is that the date will be added based on when it will be sent to our members — seems pretty simple. I’ve added what I thought was the correct tag to the HTML/HubL template, which is basically our tagline and the date:

<p class="date">The Voice for Pharmacy Compounding • {{ content.publish_date_localized }}</p>

For whatever reason, it doesn’t add the date. Other tokens, like {{ site_settings.company_state }} work just fine.

Any ideas? Thanks!

Hey @AndrewKantor the issue here is that the publish.date token is a blog token and not an email one. So the information for this is pulled from the blog and wouldn’t pull into emails. At the moment it will only work if added to a blog template.

Ahhhhh. That makes sense — thanks! I take it there isn’t an equivalent for email, then?

Doesn’t look like! Looks like the only email tokens are for the footer information.