• Resolved RKM Shilpavidyalaya

    (@rkm-shilpavidyalaya)


    Dear Sir,

    I want to dispaly Last Updated on every page of the wordpress. Whenever I update the page, this Last updated shall automatically updated about date and time.

    How to make this thing possible in my theme.
    I am using Preferential Lite latest version 2.0.2.
    Chile theme is activated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    Please find content-single.php, and paste below code above/below preferentiallite_posted_on();

    `<p>Last modified: <?php the_modified_date(); ?></p>

    Thread Starter RKM Shilpavidyalaya

    (@rkm-shilpavidyalaya)

    Dear sir,

    I downloaded content-single.php file from preferential lite theme and uploaded to child theme of preferential lite.
    In content-single.php file, I have enter the code as shown in your reply <p>Last modified: <?php the_modified_date(); ?></p>

    Altogether it shows as below :

    <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <header class=”entry-header”>
    <h1 class=”entry-title”><?php the_title(); ?></h1>

    <?php if( get_theme_mod( ‘hide_postmeta’ ) == ”) { ?>
    <div class=”entry-meta”>
    <p>Last modified: <?php the_modified_date(); ?></p>
    <?php preferentiallite_posted_on(); ?>
    </div><!– .entry-meta –>
    <?php } ?>

    But there is no result. The website page donot show Last Modified or Last Updated.

    Moreover,

    Is it possible to show this Last Modified or Last Updated on footer area rather than on page whenever any page is updated ?

    Awaiting for your reply.

    Hi RKM Shilpavidyalaya,

    First make sure you are not hiding post meta information from customizer setting. You can find that setting on basic setting section.

    If still this doesn’t helps you then we request to provide your site url.

    You can keep modified date anywhere simply by placing given function .

    Note: Please proceed to code customization only if you are sound on wordpress otherwise you will face fatal error.

    Thanks

    Thread Starter RKM Shilpavidyalaya

    (@rkm-shilpavidyalaya)

    Dear Styled Theme Member,

    I deselected Hide post meta info in the customizer setting. That did not help.
    My site: Ramakrishna Mission Shilpavidyalaya
    I am not sound in code customization but I try to follow as directed.
    I need the guidelines to display Last modified on footer area for the whole website whenever there is modification any where in the website.

    Thread Starter RKM Shilpavidyalaya

    (@rkm-shilpavidyalaya)

    Dear styled Theme,

    I have tried below code in footer.php and it worked.
    <p>Modified: <?php the_modified_time(‘F j, Y’); ?> at <?php the_modified_time(‘g:i a’); ?></p>

    This shows last updated for individual page.

    As I want now is Last updated for entire website on footer area, when there is any change in page or post or anywhere in the website, if you please help me in this regard.

    Hi RKM Shilpavidyalaya,

    Sorry to say you above question doesn’t comes under support protocol, as it requires customization. For this you need to consult with developer. They might help you on this.

    If you got any problems on theme setting or find any bug we will be more than glad to assist you.

    Thanks

    prasadjarvis

    (@prasadjarvis)

    dear RKM Shilpavidyalaya
    add below code in your area
    <p>Last modified: <?php the_modified_date(); ?></p>

    prasadjarvis

    (@prasadjarvis)

    dear RKM Shilpavidyalaya
    add below code in your area
    Last modified: <?php the_modified_date(); ?>

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘how to get Last Updated information on every page’ is closed to new replies.