Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Yet Another Featured Posts Plugin (YAFPP)

Yet Another Featured Posts Plugin provides an easy AJAX interface to feature posts, with thumbnails & other display options for featured posts.

How do I feature pages?

First, in the YAFPP settings page, check the checkbox 'Allow pages to be featured'. Now any pages you feature will show in the list of featured posts.

How do I separate featured posts & pages?

When calling get_featured_posts() you can pass in the option post_type to either post or page to specify entries of that type. So to get a list of featured posts only:

<?php get_featured_posts( array('post_type' => 'post') ); ?>

Or pull a list of only featured pages:

<?php get_featured_posts( array('post_type' => 'page') ); ?>

What data is returned when using the `arr` output method?

YAFPP returns an array in this format:

<?php array(
    'id'      => '', // id of the post
    'title'   => '', // title of the post
    'excerpt' => '', // excerpt of the post
    'url'     => '', // the post permalink
    'image'   => '', // an array of data for a YAPB image, if it exists
    'author' =>  '', // the post's author
); ?>

How do I use the `the_loop` output method?

When using the_loop output method, YAFPP alters the next instance of The_Loop to contain only the featured posts. To call these featured posts, call The_Loop:

get_featured_posts(array('method' => 'the_loop'));

 while (have_posts()) : the_post();
//whatever you want in here

It should be noted that the original query is still preserved when using this method. Thus if you want to call the original query for a given page, just call The_Loop a second time:

get_featured_posts(array('method' => 'the_loop'));

 while (have_posts()) : the_post();
//whatever you want to do with the featured posts

 while (have_posts()) : the_post();
//whatever you want to do with the original loop

For more answers to your YAFPP questions, please read the complete documentation

Requires: 2.8.4 or higher
Compatible up to: 2.9.2
Last Updated: 7 years ago
Active Installs: 1,000+


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

67,3,2 100,1,1 100,1,1
50,2,1 50,2,1 100,1,1