Recently Updated Pages

Description

Sometimes when you update one of your pages on the WordPress blog you would want visitors to know about those. This widget will create a sidebar
box with a list of pages you’ve recently updated. It also shows the date of the update beside the page title. You can choose whether to display the update date and in what format.

You’ve an option to display the Posts in the list as well. If checked (through admin panel) the list will include the Posts along with the list of Pages.

You can use WP’s shortcode to display the last update date of the page or blog posts. Date/time format for the shortcode can be controlled through the widget settings.

V 1.0.4 only fixes the bug related to the widget area where any widget (in admin panel) below RUP’s widget will lockup and cannot be moved.

V 2.0.0 widget code updated to make it combatible with WordPress v. 6.6.2

Installation

This plugin can be installed in the standard plugin installation process.

i.e.

  1. Upload recently_updated_pages.php to the /wp-content/plugins/ directory (may also create a directory under /wp-content/plugins/ to keep files organized)
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Widgets section under Appearance menu
  4. Drag the Recently Updated Pages widget into the Available Widgets section
  5. Position the widget in the location of choice in the sidebar you want it to be on

FAQ

What if I keep the title blank?

By default the widget will show “Recently Updated Pages” as the title. If you want to display a different title, type it in and save.

How many pages will it show in the list?

You can define it through the widget editor in the WordPress admin panel. Specify the number and save.

Will I be able to show my blog POST titles in the list?

Yes, now you can. Check the option to include the blog Posts in the list and it will show them along with the Page list.

Is there a way to hide the last update date?

Yes, you can do that. Toggle the checkbox to hide or display the date.

Can I change the date format?

There is now a text box to specify the date format. There’s also a small help below the admin form in the Widget section.

How do I use the shortcode?

There are two ways you can use it. Either by modifying the template files (e.g. single.php or page.php or footer.php) of the currently running theme or you can add the shortcode within the blog post or page through the WP admin post/page editors.

To use the shortcode within the template file add the following PHP code:

<?php echo do_shortcode(‘[rup_display_update_date]’); ?>

To use the shortcode through the post/page editor:

[rup_display_update_date]

Can I control the date/time format for the shortcode?

Yes, you can. Through the widget settings (WP Admin > Appearance > Widgets > Recently Updated Pages) you can now control the date/time format for shortcodes.

I’m trying to display the update date/time like 20th Aug 2010 at 5:30pm, but the word “at” shows up like “pm31”. Why?

Because PHP’s date function will recognize the characters “a” and “t” as format parameters and parse them. In order to show the word “at” you will need to escape both characters like “\a\t”.

Reviews

Gatonnya 18, 2020
A great plugin. I like to have a list of recently updated pages and posts on the side of most pages. The plugin has not been updated in 7 years but is still doing the job on my site (which is now running WP 5.3.2). The only difference noted is that the visibility function does not seem to be there. I just did a search for a new website and it seems this plugin is no longer offered. I have not seen anything else that looked like it might be up to the task.
Read all 2 reviews

Contributors & Developers

“Recently Updated Pages” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • First release

1.0.1

  • Added feature to display list of recently updated blog Posts along with the pages

1.0.2

  • Added the feature to hide/display the update date
  • Added the feature to specify the date format

1.0.3

  • Added the feature to use shortcodes and control its date/time format

1.0.4

  • Bug fix: Fixed the admin panel widget area issue where any widget below RUP widget will lock up.

2.0.0

  • Latest version compatibility: Updated the code to make this plugin compatible with WordPress v. 6.6.2