About this plugin
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
- Layout: Select a widget layout, from layout 1 to 6.
- Title: Set the widget title. Leave it empty to hide the title section.
- Title URL: Set the title link url. Leave it empty to disable link in the title.
- Use category title: Enable category name as the title.
- Use category URL: Enable category URL as the title URL.
- Post type: Select the post type. Options include: Post, Page, custom post types if available, and any.
- Category: Select a category for the posts, or choose All Categories to disable this filter.
- Tag(s): Set a post tag (using the tag slug). You can also use comma separated value for multiple tags. Prepending a tag with a hyphen will exclude posts matching that tag. Eg, featured, -video will show posts tagged with featured but not video.
- Order by: Set the order in which the posts will be displayed. Options include: Newest, Oldest, Most Commented, Alphabetical, Random, Modified Date, Page order.
- Number of posts to show: Set the number of posts displayed.
- Number of posts to skip: Set the number of posts to displace or pass over.
- Exclude current post: Choose to show or hide current post.
- Show image on: Select in which posts the image will be displayed. Options include: All posts, First post only, or none.
- Image size: Select image size from registered image sizes.
- Show post title: Choose to show or hide the post title.
- Show categories: Choose to show or hide the categories.
- Show author: Choose to show or hide the author.
- Show author image: Choose to show or hide the author image.
- Show date: Choose to show or hide the date.
- Show comments number: Choose to show or hide the comments number.
- Show excerpt: Choose to show or hide the excerpt
- Excerpt length: Set the number of words for the excerpt.
- Show read more link: Choose to show or hide the Read More link.
- Read more text: Set the text for the read more link. You can leave it empty to use the default text Read More.
- Show pagination: Choose to show or hide the pagination links.
- Block title HTML element: Choose the HTML element for the block title. Options include: h1, h2, h3, h4, h5, h6, div, p, span.
- Post title HTML element: Choose the HTML element for the post title. Options include: h1, h2, h3, h4, h5, h6, div, p, span.
- Additional class(es): Set a custom class for the widget container. You can use spaces to separate multiple classes.
Gutenberg Block
0, Flex Posts also includes a gutenberg block. 0 block editor.
Demo
Please visit the live demo here: Flex Posts Demo
Requirements
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.