WordPress.org

Ready to get started?Download WordPress

Forums

Plugin post_updated() doesn't work for new pages (2 posts)

  1. misty9
    Member
    Posted 6 years ago #

    The "last_updated" works for existing pages since I have added the plugin post_updated(). But the "last_updated" does not show up for the new pages that are created after plugin being added.

    This is what I have in the index.php:

    <span class=""><?php post_updated('F j, Y'); ?> by <?php the_author() ?></span>

    Does anyone know why and how to fix it? Thanks.

  2. misty9
    Member
    Posted 6 years ago #

    Oh, I think that I have to use both "posted" as well as "post_updated" to handle the new and existing pages. I thought that post_updated() would handle both scenarios.

    Please do share your comments if you know a way that post_updated can handle new and existing pages. thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic