How to Display the Last Updated/Modified Date of Your Posts in WordPress

WordPress Blog Post Me Last Update Ya Modified Date Show Kaise Karaye ? Hello Dosto Mera Internet Gyan Me Aap Sabhi Ka Suwagat Hai. Dosto Is Post Me Ham Aapko WordPress Ke Baare Me Kuch Jaankrari Dene Wale Hai Hai Jo Ki Aapke Blog Ko SEO Ko  Aur Bhi Behattar Bana Sakta Hai. Dosto Ham Is Blog Me Blogging Ke Baare Me Naye naye Jaankari Dete Rahte Hai.

Dosto Aaj Ke Is Post Me Ham Aapko amazing Jaankari Dene Wale Hai. Jo Ki Aapke CTR Ko Manage Karke Rakhega.  Dosto Ham apne Blog Post Me Dekha Hoga Ki Publish Data Likha Hota Hai, Dosto Yadi Aap Apne Blog Post Ko Update Karte Hai To Usme Updated Date Likha Aana Chahiye Jisse Ki Jab Bhi Koi Search Kareage Aur Aapka Post Waha Par Show Hoga To Aapka Blog Post Ko Log Open Karenge Kyoki Waha Likh Hua Hai Last Updated Date.

How To Show Last Updated Post In WordPress Blog ?

To Chaliye Dosto Ham Aapne Hai Ki WordPress Blog Post Me Last Updated Date Show Kaise Karate Hai ? Aap Hamare Niche Diye Gye Step Ko Folllow Kare.

Step 01. Sabse Pahle Aap WordPress Blog Ke Dashboard Par Jaye.

Step 02. Fir Aap Apearance Par Jaye.

Step 03. Fir Aap Theme Editor Par Jaye.

Step 04. Fir Aap Funtion.PHP Par Click Kare Aur Sabse Last Me Niche Diye Gy Code Ko Paste Kar De.

// By Mera Internet Gyan
add_filter( 'generate_post_date_output', function( $output, $time_string ) {
    $time_string = '<time class="entry-date published" datetime="%1$s" itemprop="datePublished">Published on: %2$s</time>';

    if ( get_the_date() !== get_the_modified_date() ) {
        $time_string = '<time class="entry-date updated-date" datetime="%3$s" itemprop="dateModified">Last Updated on: %4$s</time>';
    }

    $time_string = sprintf( $time_string,
        esc_attr( get_the_date( 'c' ) ),
        esc_html( get_the_date() ),
        esc_attr( get_the_modified_date( 'c' ) ),
        esc_html( get_the_modified_date() )
    );

    return sprintf( '<span class="posted-on">%s</span> ',
        $time_string
    );
}, 10, 2 );

Dosto Code Ko Paste Karne Ke Baad Aap Theme Ko Save Kar De. Fir Dosto Aapke Blog Post Ko Jab Bhi Aap Update Karenge Ya Fir Usme Changes Karenge To Usme Last Updated Date Show Hoga,

To Dosto Is Tarike Se Aap Apne WordPRess Blog Me Last Update Kiye Gye Date Ko Show Kara Sakte Hai. Dosto Umeed Karte Hai Ki Ye Jaankari Aapko Achchhe Laga Hoga. Yadi Achhna Laga TO To Share Jarur Kare. Sath Hi Hamare YouTube Channel Ko Subsribe Jarurr Kare.

Hello Dosto Mera Name Madhav Netam Hai. Main, Mera Internet Gyan, Mera General Knowledge Ka founder Hu. Dosto Mujhe Blogging Karna Bahut Pasand Hai. Main Internet Se Naye Naye Jaankari Leta Rahta Hu Aur Apne Visiter Ke liye Naye Naye Technical Related Jaankari Deta Hu. Aur Main Internet Se Sabka Help Karta Hu Mujhe Help Karna Bahut Achchha Lagta Hai

Sharing Is Caring:

Leave a Comment