• Resolved guddu1710

    (@guddu1710)


    Hey Tom,
    I Want To Show The Post Last Updated Date In The Beginning Of The Article And Search Results As Well.
    I Found Your Documentation About This And Added The Code.

    .posted-on .updated {
    display: inline-block;
    }

    .posted-on .updated + .entry-date {
    display: none;
    }

    https://docs.generatepress.com/article/show-the-updated-post-date/

    It Is Showing The Updated Date In The Beginning Of The Post. Perfect.

    Now, I Want To Show The Last Updated Date Of A Post In Search Results [Serps] Also.

    So, Is This Code For Users Only Or Search Results Also?

    • This topic was modified 5 years, 7 months ago by guddu1710.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    The posts have the necessary schema markup for search engines to pick up the updated date. However, it’s up to them when and where they show the date.

    You can run your post through the Google Rich Snippets tool just to make sure it can pick up the correct date.

    Thread Starter guddu1710

    (@guddu1710)

    Thank You So Much For Responding.

    I Read An Article On Kinsta And To Get The Result I Have To Do The Following.

    1. Edit single.php And Find <?php the_time(‘F j Y’); ?>
    2. Replace The Code With Last updated on <time datetime=”<?php the_modified_time(‘Y-m-d’); ?>”><?php the_modified_time(‘F jS, Y’); ?></time>

    But There Is Not Any Time Function In Single.php, archive.php And Function.php In Generatepress.

    My Question Is Where Can I Find The Time Function.

    The Article Is Basically A SEO Checklist Of 45 Things For Better SEO. You Don’t Need To Go Through The Whole Article, Just Jump On No. 30.

    Article Link https://kinsta.com/blog/wordpress-seo-checklist/

    • This reply was modified 5 years, 7 months ago by guddu1710.
    • This reply was modified 5 years, 7 months ago by guddu1710.
    Theme Author Tom

    (@edge22)

    Hi there,

    GeneratePress does that for you by default. You can right click your date + inspect to see the code added.

    Thread Starter guddu1710

    (@guddu1710)

    Okay And Thank You So much For Your help.

    Theme Author Tom

    (@edge22)

    You’re welcome! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Last Updated Date In Search Results’ is closed to new replies.