• Resolved w8tts

    (@w8tts)


    When we first did our WP pages we used a plugin called Last Modified Timestamp. And that plugin has not been updated in a LONG time. So, I’m now slowly working my way through 60+ pages upgrading to WP Last Modified Info.

    Is there any quick way to do these modifications?

    Ted

Viewing 1 replies (of 1 total)
  • Plugin Author Sayan Datta

    (@infosatech)

    Hi,

    If you do not want to edit that 60+ pages you can use this snippet to hide the [last-modified] shortcode output of the previous plugin by adding this to the end of your theme’s function.php file after disabling that plugin:

    add_shortcode( 'last-modified', function( $atts ) {
        return '';
    });

    Now you can use auto insert method for posts or pages from plugin settings > Post Options or Page Options.

    If you want to use only the shortcode [last-modified] on all the posts and pages including those 60+ posts, use this snippet instead on the previous snippet:

    add_shortcode( 'last-modified', function( $atts ) {
        if( function_exists( 'get_the_last_modified_info' ) {
            return get_the_last_modified_info();
        }
        return '';
    });

    Now you can configure the settings from plugin settings > template Tags.

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Upgrading from Last Modified Timestamp’ is closed to new replies.