• I would like to see
    -UPDATE!
    after the post title for posts that I choose to do major rewrites for so that I can re-publish them.

    How do I do this?

    I imagine that if I change the publish date to today’s date, the post will be sent to subscribers again today. Right? Is there a plug-in that adds the -UPDATE! to the title?

Viewing 1 replies (of 1 total)
  • You could probably do this by comparing the_time(), or the _date() to the_modified_time() or the_modified_date() and then, if there is a difference, display your UPDATED text:

    <?php if (get_the_modified_time() != get_the_time()) echo '<span class="updated">UPDATED</span>';?>

    However, that means that every change you make to a post will cause it to be flagged up as updated. WordPress can’t identify what is a major rewrite and what isn’t. Only you can. So you may have to look at another method that would allow to manually flag certain posts – such as perhaps tagging them as “updated”.

Viewing 1 replies (of 1 total)
  • The topic ‘Want the word “UPDATE” to appear on updated posts’ is closed to new replies.