WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!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:

<?php
get_featured_posts(array('method' => 'the_loop'));

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

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:

<?php
get_featured_posts(array('method' => 'the_loop'));

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

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

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: 2010-4-23
Downloads: 28,293

Ratings

3 stars
3.9 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,1,1
100,1,1
100,1,1
100,1,1
67,3,2 100,1,1 100,1,1
50,2,1 50,2,1 100,1,1
0,2,0
75,12,9
67,3,2
0,1,0
33,3,1
33,3,1
0,1,0