Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Post grid element returning date in wrong format

Home / Forums / Kadence Theme / Post grid element returning date in wrong format

This topic is: Resolved
[Resolved]
Posted in: Kadence Theme
July 5, 2025 at 7:25 am

Hello,

I’m following this guide – to display the value of a date custom field.

It’s all working fine except the actual date is returned in the wrong format.

In ACF the date field set as:

Display Format
The format displayed when editing a post
July 5, 2025
F j, Y

Return Format
The format returned via template functions
July 5, 2025
F j, Y

This is the format that is being returned: 20250705

Do I need to add something else to snippet to force the return date to be in the format F j, Y as set in ACF?

add_action(‘kadence_blocks_post_loop_start’, function($attributes){
if ( isset($attributes[‘className’]) && strpos($attributes[‘className’], ‘special-carousel’) !== false ) :
echo do_shortcode(‘[kadence_element id="15804"]‘);
endif;
}, 20);

Thank you!

  • The forum ‘Kadence Theme’ is closed to new topics and replies.