Flex Posts – Widget and Gutenberg Block


Flex Posts is a widget to display posts in various different layouts. It is useful for a news site where you need to display a lot of posts in a page.

The widget is responsive so you can place it in any widget area. The widget content will adapt based on the width of its container. In a narrow area like standard sidebar, posts will be displayed vertically, but in a wider area, posts will be displayed in 2 or 3 columns depends on the container’s width.

Widget Settings

You can change the following in the widget settings:

  • Layout (Layout 1 – 4)
  • Title
  • Filter by Category
  • Order by
  • Number of posts to show
  • Number of posts to skip
  • Show/hide categories
  • Show/hide author
  • Show/hide date
  • Show/hide comments number
  • Show/hide excerpt

Gutenberg Block

Since version 1.1.0, Flex Posts also includes a gutenberg block. You can add the widget directly into the post/page content with the WP 5.0 block editor.


Please visit the live demo here: Flex Posts Demo


This plugin has been tested and works with at least PHP 5.3 installed in your environment. But we strongly recommend you to use the latest PHP version, as using older versions may expose you to security vulnerabilities.


  • Widget settings
  • Layout 1 in sidebar
  • Layout 1 in content area
  • Layout 2 in sidebar
  • Layout 2 in content area
  • Layout 3 in sidebar
  • Layout 3 in content area
  • Block editor
  • Layout 4


  1. Upload the flex-posts directory to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‚Plugins‘ menu in WordPress.
  3. Go to Appearance » Widgets to add Flex Posts widget into your widget area.
  4. You can also insert the widget from post/page edit screen. Click Add block button, go to Widgets section, and click Flex Posts to add the widget into your content area.


Simple plugin

Love the plugin. It does what it says it should do. No complaints. Made this account just to give it a review. Though, it would be greater if there's an Order By Random. 🙂

love it

I really love this plugin, please add the filter by tag feature for the next version, and more layout thanks.

Excellent plugin, but requires php 7.x

One of the best plugins for this "genre". However, I can only make it to work on my localhost running php v7.x. On my Godaddy host with php v5.6 the plugin even refuses to activate. Adding backwards support will increase the number of people using this awesome plugin. Thanks, Nick.
Lies alle 4 Rezensionen

Mitwirkende & Entwickler

„Flex Posts – Widget and Gutenberg Block“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:




  • Added post type option
  • Added show image option
  • Added a filter hook to set template directory
  • Updated template tags to make the functions pluggable


  • Added a new layout (Layout 4)
  • Added filter by tags
  • Added order by random
  • Added a filter hook to modify block title
  • Updated image size filter hook
  • Updated row class & styling (changed fp-posts to fp-row)


  • Fixed excerpt display function


  • Added gutenberg block
  • Fixed some style issues


  • Fixed compatibility with old php versions


  • Initial Release.