WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Easy Popular Posts

An easy to use WordPress function to add popular posts to any WordPress theme.

How do I display the results in my PHP code?

<?php thisismyurl_easy_popular_posts(); ?>

How do I display the results in my posts?

Include the shortcode [thisismyurl_easy_popular_posts] in any post or page.

How do I include the results as a widget?

On your Widgets page, simply drag and drop the widget to your sidebar!

=General results= Without passing any parameters, the plugin will return ten results or fewer depending on how many posts you have.

<?php thisismyurl_easy_popular_posts(); ?>

=Specific number of results= If you would like to return a specific number of results as your maximum:

<?php thisismyurl_easy_popular_posts('count=10'); ?>

=Altering the before and after values=< By default the plugin wraps your code in list item (<li>) tags but you can specify how to format the results using the following code:

<?php thisismyurl_easy_popular_posts('before=<p>&after=</p>'); ?>

=The Order=< You can now change the order of the results using ASC, DESC or RAND to return the results in ascending, descending or random order.

<?php thisismyurl_easy_popular_posts('order=ASC'); ?>

=Echo vs. Return= Finally, if you'd like to copy the results into a variable you can return the results as follows:

<?php thisismyurl_easy_popular_posts('show=false'); ?>

=Combining Arguements=

If you'd like to call multiple arguments you can do so by separating them with a & symbol:

<?php thisismyurl_easy_popular_posts('show=false&order=ASC'); ?>

Requires: 3.0.0 or higher
Compatible up to: 3.5.2
Last Updated: 2013-7-23
Downloads: 203,917

Ratings

3 stars
3.7 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.

0,1,0
0,1,0
33,3,1
100,1,1
100,1,1 0,1,0
100,4,4
0,1,0 100,2,2
100,1,1
0,1,0
100,1,1
0,1,0 0,1,0 0,1,0 0,3,0
100,1,1
100,1,1
0,2,0
100,1,1
0,2,0