30+
January 24, 2024
February 25, 2013
The plugin displays a checkbox in the publish meta box to feature a post. The checkbox only appears on admin selected post types which can be selected in the Settings->Writing screen.
When a post is designated as featured:
featured-{$posttype} classes via the post_class filter.Note: For the plugin to work on attachments, you must be using 3.5 or above. All other features will work on 3.1.0 and up.
/wp-content/plugins/ directoryThis is not the same as sticky posts. Sticky functionality can only be applied to the core ‘post’ post type. More information on why
This snippet of code will fetch the 10 most recent posts that are featured.
<?php
$featured_posts = new WP_Query( array(
'post_type' => 'post',
'posts_per_page' => 10,
'tax_query' => array(
array(
'taxonomy' => 'pts_feature_tax',
'field' => 'slug',
'terms' => array( 'featured' ),
)
)
) );
if ( $featured_posts->have_posts() ) : while ( $featured_posts->have_posts() ) : $featured_posts->the_post();
//output featured posts here
endwhile; endif;
?>“
| Version | Download | Type |
|---|---|---|
| 3.0.3 | Download | Stable |
| 3.0.2 | Download | Stable |
| 3.0.1 | Download | Stable |
| 3.0.0 | Download | Stable |
| 2.2.0 | Download | Stable |
| 2.1.5 | Download | Stable |
| 2.1.4 | Download | Stable |
| 2.1.3 | Download | Stable |
| 2.1.2 | Download | Stable |
| 2.1.1 | Download | Stable |
| 2.1.0 | Download | Stable |
| 2.0.0 | Download | Stable |
| 1.1 | Download | Stable |
| 1.0.1 | Download | Stable |
| 1.0 | Download | Stable |