Hi Holger!
Could you add the ‘modified date’ as an option to use instead of the ‘publish date’. So also posts which are recently modified are shown in the plugin.
I didn’t try this but I believe it’ll work just fine (if it doesn’t, please let me know). Add the following snippet to your theme’s functions.php file:
function recently_order_by_last_mod( $args ) {
$args['orderby'] = 'modified';
$args['order'] = 'desc';
return $args;
}
add_filter( 'recently_query_args', 'recently_order_by_last_mod' );
…please add also the parameter ‘modified-date’ that can be displayed in the list.
For this one you’ll have to modify Recently’s code:
- Go to Plugins > Editor and select Recently from the dropdown.
- Find:
$date = get_the_time( $instance['meta_tag']['date']['format'] );
and change it to:
$date = get_the_modified_date( $instance['meta_tag']['date']['format'] );
- Hit the Update file button to save changes.
I’m posting this because when I built this plugin the original idea was to have it list the most recently published posts ?? I might change my mind and add an additional option / feature to display the modified date in the future, but for now this will do.
Make sure you bookmark this topic for future reference, or else next time you upgrade the plugin all changes to its code will be lost (which is why modifying a plugin’s code isn’t a good idea, but since I don’t plan to release a new version of Recently any time soon you should be safe for now).