Order Categories and all custom taxonomies terms (hierarchically) using a Drag and Drop Sortable JavaScript capability.
About Flexible Posts Widget
Flexible Posts Widget is a highly customizable alternative to the default Recent Posts widget. It allows users to display posts from any combination of post types or taxonomies, and has many options for controlling the number of posts displayed, the order in which they are displayed, and more.Screenshots







Frequently asked questions
What is Flexible Posts Widget?
Flexible Posts Widget (FPW) is an advanced WordPress plugin designed to display posts in sidebars with extensive customization options. It serves as a powerful alternative to the default Recent Posts widget.
What are some key features of Flexible Posts Widget?
Key features include customizable widget titles, the ability to get posts by post type, taxonomy, or ID, control over the number of posts displayed, and options to show and size featured images. It also supports custom templates and multi-language setups.
How can I order and sort posts using this widget?
You can order posts by date, modified date, ID, title, menu order, random, or Post ID Order. Posts can then be sorted in either ascending or descending order.
Does Flexible Posts Widget support multiple languages?
Yes, Flexible Posts Widget is compatible with WPML and PolyLang for multi-language support. While not tested with other multi-language plugins, it is expected to work.
Are there any developer hooks available?
Yes, there are two public hooks: `dpe_fpw_args` for filtering query variables and `dpe_fpw_template_{$template_name}` for filtering the template file path.
Changelog
3.5.0
- Major codebase rewrite to prepare for additional widgets, options.
- Automatically updates any widget settings when the plugin is updated to a new version
- Multi Language support (WPML & PolyLang)
- Term selection box now uses built-in WordPress function
wp_terms_checklist(). This provides support for visually displaying nested terms and brings the plugin into compliance with WordPress code.
3.4.1
- Version bump for WordPress 4.1 support.
3.4
- Added Finnish language support. (Props: @eccola)
- Made the Template Filename field a select box based on the templates available in the current theme, the parent theme (if the current theme is a child theme) and the plugin’s views folder. (Props @w3b-beweb)
- Added a new default template
Default.phpthat works better in most sidebar situations. The current default templateWidget.phpwill be used by any existing widgets unless manually changed. - Added support to order posts by Modified Date.
- Migrated admin CSS to SASS.
- Much code clean up and refactoring.
- Fixed an issue with language files not loading properly (Props @sajtdavid).
3.3.1
- Added plugin icon.
- Version bump for WordPress 4.0 support.
3.3
- Refactored the PHP Class to encapsulate the plugin.
- Added the ability to sort posts by “Post ID Order”. Useful when getting posts using the ID tab
post__in. (Props: @cinus89) - Added Russian translation. (Props: @mizhgun)
- Tested To bump for WordPress 3.9 support.
3.2.2
- Version bump for WordPress 3.8 support
3.2.1
- Added Italian language support. (Props: @adriano-esposito)
3.2
- Added option to ignore sticky posts.
- Added support to get post by post ID directly.
- Added Polish language support. (Props: @Invens)
- Added a few filters:
dpe_fpw_argsto filter the query vars before submitting the query anddpe_fpw_template_{$template_name}to filter the selected template.
3.1.2
- Fixed several pesky PHP notices. (Props: @eeb1)
3.1.1
- Fixed incorrect use of rtrim in getTemplateHierarchy when getting custom template files. (Props: @mortenf)
3.1
- Internationalized and added Spanish language support. (Props: @elarequi)
- Added support for Media post types with “image/” mime types to be displayed directly in the default template.
3.0.2
- Bug fix: Added a check to make sure both taxonomy & term are set for tax queries.
3.0.1
- Bug fix: Not able to get all registered post types & taxonomies until after widget init. Had to reorder some code.
- Bug fix: when getting post types for display in widget admin. (Props: @angelfish276)
3.0
- Allow widgets to query by post type and/or taxonomy & term instead of just one or the other. (Props: @vernal)
- Allow widgets to query by multiple post types and multiple terms within the same taxonomy. (Props: @vernal)
- Changed the list of available post types and taxonomies from every possible option to just those that are public.
- General UI enhancements for the widget admin.
- Some minor code cleanup and security improvements.
2.1.1
- Fixed a source order bug in the widget.php template file. (Props: @carstenbach).
2.1
- Added offset parameter to display options.
2.0
- Upgrade notice: When upgrading from v1.x.x to v2.x, remember to double-check the settings for any existing widgets.
- Dynamically populate available terms based on selected taxonomy.
- Make the “Get Posts By” section selectable and only show the chosen method: Taxonomy & Term or Post Type.
- Miscellaneous admin improvements.
1.0.5
- Bug fix: Removed post_status ‘private’ from wp_queries. We don’t want to show private posts in our loops.
1.0.4
- Fixed an issue where post thumbnails aren’t displaying.
1.0.3
- Fixed PHP notices that showed in the admin when WP_DEBUG is enabled
- Added some stub code for future admin JavaScripts (not active yet).
- Readme.txt updates
1.0.2
- Readme.txt updates
1.0
- First public release