Site logo

[Support request] Post is showing today’s date instead of the post date.

Home Forums Support [Support request] Post is showing today’s date instead of the post date.

Home Forums Support Post is showing today’s date instead of the post date.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2607006
    Denis

    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

    #2607148
    David
    Staff
    Customer Support

    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.

    #2607164
    Denis

    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.

    #2607179
    David
    Staff
    Customer Support

    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.

    #2607653
    Denis

    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.

    #2608333
    David
    Staff
    Customer Support

    Glad to hear that!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.