Description
Something not working? Open a support ticket: we reply within 48 hours.
A recent posts widget with filters. Show the latest posts filtered by:
- Post type
- Post format
- Category (posts only)
- Tag (posts only)
- Author
Each filter can include or exclude the posts that match it.
You can also:
- Show the featured image (thumbnail)
- Show sticky posts
- Show the post date
- Show the post author
- Hide the widget on pages of the same post type it lists
The widget uses the same CSS classes as the core Recent Posts widget, so it picks up your theme’s styles.
To change the markup, copy templates/frontend-1.php from the plugin to your-theme/widget-recent-post-advanced/frontend-1.php (use a child theme, so theme updates do not overwrite it).
Installation
- Upload the plugin files to the
/wp-content/plugins/directory, or install the plugin from the Plugins screen in WordPress. - Activate the plugin from the Plugins screen.
- Go to Appearance → Widgets, add the “Advanced Recent Posts” widget to a sidebar and configure it.
FAQ
Where can I find the ID of a post, page, category, tag or author?
The plugin adds an ID column to the admin lists of posts, pages, categories, tags and users. If you have turned it off under Tools → Recent Posts Widget, open the item for editing: the ID is in the address bar, for example post=123 or tag_ID=4.
Which post format names can I use?
Both the short name, such as aside, and the full slug, such as post-format-aside. The widget settings list the formats in use on your site.
What is the widget’s CSS ID?
Each widget has the ID widget-recent-posts-in-category-N, where N is the widget number. You can see it with your browser’s developer tools (right click → Inspect).
Screenshots
Changelog
1.4.3
- Improved: accessibility of the widget output: machine-readable dates, author separator hidden from screen readers, current post marked with aria-current, labelled navigation landmark on themes that support navigation widgets (same rule as the core Recent Posts widget).
- Improved: the author now also has the CSS class post-author (post-date is kept for existing styles).
- Improved: fewer database queries when showing authors, and no term cache priming when permalinks do not need it.
- Improved: clearer wording in the widget form and settings page; the form lists only public post types and shows post formats by their short name.
- Improved: display options grouped in the widget form.
1.4.2
- Improved: output escaping and prefixed function names to avoid conflicts with other plugins.
- Fix: the widget no longer prints an empty list when no post matches.
- Fix: “Hide on the same cpt page” now works with a comma-separated list of post types.
- Fix: uninstall now cleans every site of a multisite network.
- Fix: the Post Format filter now accepts “aside” as well as “post-format-aside”.
- Improved: thumbnails need fewer database queries, and the duplicate thumbnail link is hidden from screen readers.
- Improved: unknown post types in the widget settings fall back to posts.
- Strings are now translatable (text domain widget-recent-posts-with-category-choice).
- Requires PHP 7.4 and WordPress 5.6 or later.
- Tested up to WordPress 7.1.



