Skip Navigation

[Resolved] Post date not translating when placed in template via Single Field block

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 5.42 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 1 year, 3 months ago.

Assisted by: Waqar.

Author
Posts
#2632491
Screenshot 2023-08-10 8.39.33 AM.png
Screenshot 2023-08-10 8.35.05 AM.png

I am trying to:
Create a custom archives template for Posts that includes display of the post date. When viewing the template in a different language, Post Date should be translated, provided that strings are translated via WPML, which they are.

Link to a page where the issue can be seen:
hidden link (English)
hidden link (Irish)

I expected to see:
Post Date translated to Irish when placed via the Single Field block.

Instead, I got:
When the Post Date is placed in the template via a Single Field block, the Month value is not being translated. However, if I place the Post Date in the same template via the shortcode [wpv-post-date], it does translate. Please see screen shots.

#2632849

Hi,

Thank you for contacting us and I'd be happy to assist.

To troubleshoot this, I'll need to see how this template and WPML string translations are set up in the admin area.

Can you please share temporary admin login details, in reply to this message?

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

regards,
Waqar

#2634663

Hi. I found a workaround that is suitable. When I place the [wpv-post-date] shortcode into my archive template directly, via a Custom HTML block instead of the Single Field block, the date value translates as expected. I have some bigger fish to fry right now so I'm going to close this ticket.

Thanks!