Title: Tidyhive Featured Posts
Author: Mohit Chawla
Published: <strong>6 February 2017</strong>
Last modified: 11 March 2017

---

Search plugins

![](https://ps.w.org/tidyhive-featured-posts/assets/banner-772x250.png?rev=1592638)

This plugin **hasn’t been tested with the latest three major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/tidyhive-featured-posts_636b74.svg)

# Tidyhive Featured Posts

 By [Mohit Chawla](https://profiles.wordpress.org/orahmax2/)

[Download](https://downloads.wordpress.org/plugin/tidyhive-featured-posts.1.5.0.zip)

 * [Details](https://en-gb.wordpress.org/plugins/tidyhive-featured-posts/#description)
 * [Reviews](https://en-gb.wordpress.org/plugins/tidyhive-featured-posts/#reviews)
 *  [Installation](https://en-gb.wordpress.org/plugins/tidyhive-featured-posts/#installation)
 * [Development](https://en-gb.wordpress.org/plugins/tidyhive-featured-posts/#developers)

 [Support](https://wordpress.org/support/plugin/tidyhive-featured-posts/)

## Description

This plugin adds the ability for the user to mark a post to be a featured post with
just one click without the need of editing an individual post. The plugin also includes
a widget which can display all the posts which have been marked featured.

#### Usage

 * Go to your admin dashboard page.
 * Open all posts page which displays the list of posts in table.
 * A column name ‘Featured posts’ will be there with a star icon in each row.
 * Click the star to make that post as featured.

Dashboard->Posts>All Posts

#### Instructions

Q1. How to display feature posts?

Plugin comes with a widget, which can be added to sidebar

Q2. How to display featured posts in any desired section of theme(Developers)?

In order to display featured posts in your theme, use the following code to fetch
the posts.

    ```
    $featured_posts = Thfp_public::thfp_get_featured_posts();
    ```

The above code return WP_Query object which you can use in a loop. Above static 
function accepts a parameter(int) which limits the number of posts which it can 
return.

Show the posts with the help of custom loop:-

    ```
    if($featured_posts->have_posts()):
        while($featured_posts->have_posts()): $featured_posts->the_post();
            //Your code here
        endwhile;
    endif;
    ```

You can also use your own wp_query. Make sure you use ‘tag’ key to be ‘featured’.

    ```
    $args = array(
        'post_status'   =>  'publish',
        'tag'           =>  'featured',
        //Use any other needed args
    );
    $featured_posts = new WP_Query($args);
    ```

and then use the loop to display posts.

## Installation

 1. Upload `thfp.zip` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## Reviews

There are no reviews for this plugin.

## Contributors and Developers

“Tidyhive Featured Posts” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Mohit Chawla ](https://profiles.wordpress.org/orahmax2/)
 *   [ ZS ](https://profiles.wordpress.org/orahmax/)

[Translate “Tidyhive Featured Posts” into your language.](https://translate.wordpress.org/projects/wp-plugins/tidyhive-featured-posts)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/tidyhive-featured-posts/),
check out the [SVN repository](https://plugins.svn.wordpress.org/tidyhive-featured-posts/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/tidyhive-featured-posts/)
by [RSS](https://plugins.trac.wordpress.org/log/tidyhive-featured-posts/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.5.0**
 *  Last updated **10 years ago**
 *  Active installations **60+**
 *  WordPress version ** 3.0.1 or higher **
 *  Tested up to **4.7.38**
 *  Language
 * [English (US)](https://wordpress.org/plugins/tidyhive-featured-posts/)
 * Tags
 * [featured](https://en-gb.wordpress.org/plugins/tags/featured/)[featured posts](https://en-gb.wordpress.org/plugins/tags/featured-posts/)
   [post](https://en-gb.wordpress.org/plugins/tags/post/)[posts](https://en-gb.wordpress.org/plugins/tags/posts/)
   [widget](https://en-gb.wordpress.org/plugins/tags/widget/)
 *  [Advanced View](https://en-gb.wordpress.org/plugins/tidyhive-featured-posts/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/tidyhive-featured-posts/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/tidyhive-featured-posts/reviews/)

## Contributors

 *   [ Mohit Chawla ](https://profiles.wordpress.org/orahmax2/)
 *   [ ZS ](https://profiles.wordpress.org/orahmax/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/tidyhive-featured-posts/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://tidyhive.com)