Flex Posts – Widget and Gutenberg Block

Description

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 – 3)
  • 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.

Demo

Please visit the live demo here: Flex Posts Demo

Requirements

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.

Screenshots

  • 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

Installation

  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.

Reviews

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.
Read all 2 reviews

Contributors & Developers

“Flex Posts – Widget and Gutenberg Block” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.1.1

  • Fixed excerpt display function

1.1.0

  • Added gutenberg block
  • Fixed some style issues

1.0.1

  • Fixed compatibility with old php versions

1.0.0

  • Initial Release.