Featured Posts Pro
This plugin gives Administrator/Editor an easy option to mark posts, pages & custom posts as featured posts and provides a widget to list the rece …
The facts
- Rating
- 4.2★ from 5
- Active installs
- 100+
- Price
- Free
- Last updated
- 4 Apr 2019
- Added
- Oct 2016
- Requires WP
- 3.0.1
- Tested up to
- WP 5.1.24
- Downloads
- 4,390
Our analysis
AI-assistedFeatured Posts Pro is a WordPress plugin that allows administrators and editors to easily designate posts, pages, and custom posts as featured. This can be done via a checkbox on the posts list or edit page. The plugin also includes a widget that displays recent featured posts, which can be customised to fit the theme's design.
To implement the featured posts in a theme, users need to create custom queries using provided sample code. The widget template can be modified by creating specific PHP files in the theme folder, allowing for layout adjustments as needed.
Best for: This plugin is suitable for WordPress users looking to highlight specific posts or pages on their site.
What it does well
- ✓Allows easy selection of featured posts via checkboxes
- ✓Includes a widget for displaying recent featured posts
- ✓Customisable widget templates for theme integration
Where it falls short
- •Limited information on compatibility and features
- •Last updated in April 2019, may not support newer WordPress features
Verdict
Featured Posts Pro provides a straightforward way to manage featured content, but its age and limited updates may be a concern for some users.
From the developer
thapa.laxman's own description of Featured Posts Pro, lightly tidied.
Featured Posts Pro
allows administrator and editor an option to set posts, pages & custom posts as a featured posts very easily. Posts, pages & custom posts can be set as featured posts using a checkbox on the posts list page or on the edit page of the post. Please see screenshots to be more clear.
Featured Posts Pro
also adds a widget that will list the recent featured posts. This is similar to the default recent posts widget except this widget displays recent featured posts instead. The template for the Featured Posts Pro Widget can be customized with your theme.
How to use in the theme
You can to get the featured posts, you need to make a custom query as follows
sample code to get the featured posts with orders
`$args = array(
‘post_type’ => ‘any’,
‘posts_per_page’ => 10,
‘no_found_rows’ => true,
‘post_status’ => ‘publish’,
‘ignore_sticky_posts’ => true,
‘meta_query’ => array(
array(
‘relation’ => ‘OR’,
array(
‘key’ => ‘post_featured_position’,
‘compare’ => ‘EXISTS’
),
array(
‘key’ => ‘post_featured_position’,
‘compare’ => ‘NOT EXISTS’
),
),
array(
‘relation’ => ‘AND’,
‘key’ => ‘is_post_featured’,
‘compare’ => ‘=’,
‘value’ => 1
)
),
‘orderby’ => ‘meta_value_num’,
‘order’ => ‘ASC’,
) ;
$featuredPosts = new WP_Query( $args );<h3>sample code to get the featured posts without order</h3>$args = array(
‘posts_per_page’ => 10,
‘no_found_rows’ => true,
‘post_status’ => ‘publish’,
‘ignore_sticky_posts’ => true,
‘meta_key’ => ‘is_post_featured’ //this is the meta key used for the featured posts
) ;
$featuredPosts = new WP_Query( $args );`
or if you simple want tp
How to customize the widget
You can customize the widget template as follows:
1. create a folder ‘featured_posts_pro_tpls’ inside your theme folder
2. create two php files named as ‘tpl_featured_posts_pro_large.php’ & ‘tpl_featured_posts_pro_small.php’ in the ‘featured_posts_pro_tpls’ folder you just created
3. template file ‘tpl_featured_posts_pro_large.php’ will be used to render the widget when widget size is selected as large & similarly ‘tpl_featured_posts_pro_small.php’ is for small widget size
3. copy and paste the content from plugin_fold er > featured-posts-pro > public > partials > featured_posts_pro-widget.php in the above two files
4. make the layout changes as you wish.