Site logo

Archived topic

Post is showing today's date instead of the post date.

5 replies · Started by Denis on April 12, 2023

Viewing posts 1–6 of 6

Hello
I have used an element post layout.
However, the post is showing today's date instead of the post creation date.

This is the code that describes the date section.
The date showing on the news page is correct.

<!-- wp:generateblocks/headline {"uniqueId":"1ee4cbcf","element":"p","fontSize":14,"marginRight":"10","marginBottom":"0","gpDynamicTextType":"post-date","gpDynamicTextReplace":"Date","gpDynamicDateUpdated":true} -->
<p class="gb-headline gb-headline-1ee4cbcf gb-headline-text">Date</p>
<!-- /wp:generateblocks/headline --><!-- /wp:generateblocks/container -->

Thanks

Hi there,

looking at your HTML there, ie. gpDynamicDateUpdated":true} then you have the dates dynamic data set to show the updated date. You can change that to show the Published date instead.

Thank you for the fast reply David,
Do I just change that "true" to "false" or do I need to replace it with other code?
If so - can you give me the appropriate code to copy/paste please?
Thanks.

Are you not using the Block Editor ? As you shouldn't need to edit its code when the Headline Block has that in its block settings. Let me know.

I don't know any code.
I just tried changing the gpDynamicDateUpdated":true} to false and now it shows the post creation date instead of todays date.
so that seems to work OK.
Thanks for the help.

Glad to hear that!

This archived topic is closed to new replies.