Topic: Some Posts not displaying date | WP Masonry Layout

Some Posts not displaying date

Home Forums Pro Version Some Posts not displaying date

This topic contains 4 replies, has 3 voices, and was last updated by  Masonry Guy 1 year, 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5702 Reply

    snikay
    Participant

    Hi,

    i just addet <?php the_date(); ?> to my custom layout. Some posts do not display the date. Thats strange to me.. Do you have an idea if it’s caused by the grid?

    Thanks

    #5709 Reply

    Masonry Guy
    Keymaster

    Hi Snikay,

    I don’t think this is our grid issue. May be it is due to some other plugin ?

    or can you try keeping date format like this way <?php the_date('Y-m-d') ?>

    Thanks

    #5763 Reply

    snikay
    Participant

    Looks the same every time. Tried to deactivate all plugins, used <?php the_date('Y-m-d') ?>. It stays like that. Also the problem appears on new created posts. Not on all of them though.. Some days ago the date was missing on one post again.
    Now i am using <?php wp_days_ago_v3 ($stopUsingAjaxAfter, $showDateAfter, $showDateFormat, $showYesterday) ?> because using WP-days-ago. now i have the date on all posts.

    #12192 Reply

    Thomas Prinzivalli

    Hi,

    I had the same problem using <?php the_date(); ?> but everything works fine using `<?php echo get_the_date(); ?>
    Just make the switch and you’re done.

    Best regards

    #12194 Reply

    Masonry Guy
    Keymaster

    Hi Thomas,

    Thank you so much for sharing the solution.

    
    <?php the_date('Y-m-d') ?>

    only show date once for the entire loop.

    Forget about this last time. Sorry about it.

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Some Posts not displaying date
Your information: