BACK TO DIRECTORY

Flexible Posts Widget

by DaveE

4.6
(57 ratings)

The default Recent Posts widget is exceptionally basic. I always find myself in need of a way to easily display a selection of posts from any combination post type or taxonomy. Hence, Flexible Posts Widget.

Flexible Posts Widget (FPW) is more than just a simple alternative to the default Recent Posts widget. With many per-instance options it is highly customizable and allows advanced users to display the resulting posts virtually any way imaginable.

Features & options

  • Customizable widget title
  • Get posts by post type(s) and/or taxonomy & term(s) or directly by a list of post IDs.
  • Control the number of posts displayed and the number of posts to offset.
  • Option to display the post feature image.
  • Select the post feature image size to display from existing image sizes: thumbnail, medium, large, post-thumbnail or any size defined by the current theme.
  • Order posts by: date, modified date, ID, title, menu order, random, Post ID Order; and sort posts: ascending or descending.
  • Each widget’s output can be customized by user-defined templates added to the current theme folder.
  • Multi Language support. Compatible with WPML and PolyLang for sure. Not tested with other multi-language plugins, but it should work.

Plugin Hooks

Flexible posts widget currently has two public hooks:

Future updates & feature requests list

  • Use search box instead of ID text field for post id’s
  • Shortcode functionality.
  • Get posts by Author.
  • Filter out the post currently being viewed.
  • Get posts from the same archive (term/post type/etc).
  • Limit results by a time period.

Screenshots

Configuring a FPW in wp-admin with the Post Type tab displayed.

Configuring a FPW in wp-admin with the Post Type tab displayed.

Configuring a FPW in wp-admin with the Taxonomy & Term tab displayed.

Configuring a FPW in wp-admin with the Taxonomy & Term tab displayed.

Configuring a FPW in wp-admin with the ID tab displayed.

Configuring a FPW in wp-admin with the ID tab displayed.

An example FPW displayed using WordPress's TwentyTwelve theme and the default Feature Image (post-thumbnail) size.  This demonstrates how the plugin looks out-of-the-box with no user-customized styling or output in a default theme.

An example FPW displayed using WordPress's TwentyTwelve theme and the default Feature Image (post-thumbnail) size. This demonstrates how the plugin looks out-of-the-box with no user-customized styling or output in a default theme.

In the Wild: FPW displaying a selection of featured beers (Post Type: Brew) over at http://canalparkbrewery.com.  This example uses slightly customized output and some theme-specific styles.

In the Wild: FPW displaying a selection of featured beers (Post Type: Brew) over at http://canalparkbrewery.com. This example uses slightly customized output and some theme-specific styles.

In the wild: FPW displaying a selection media attachments, with custom thumbnails.  This example uses highly customized HTML output and very theme-specific styles.

In the wild: FPW displaying a selection media attachments, with custom thumbnails. This example uses highly customized HTML output and very theme-specific styles.

In the wild: FPW displaying several posts over at http://chnl7700.mnsu.edu.  Also highly customized output and theme styles.

In the wild: FPW displaying several posts over at http://chnl7700.mnsu.edu. Also highly customized output and theme styles.

Plugin Details

Active Installs
7K+
Total Downloads
216,198
Version
3.5.0
Requires WP
3.2
Requires PHP
Tested Up To
4.7.35
Added
2012-04-20
Last Updated
2017-11-28 9:10am GMT

Ratings

5
48
4
4
3
1
2
1
1
3