1. Using WPP on posts & pages

Héctor Cabrera edited this page Jul 13, 2016 · 7 revisions

Shortcodes are macro codes that allow users (that's you!) to insert bits of predefined functionalities into post content.

WordPress Popular Posts takes advantage of it so you can showcase a list of popular posts on, say, a Hall-of-Fame page where your visitors can gain direct access to your best contents.

By default -that is, without any parameters- the [wpp] shortcode lists the most viewed posts (up to 10) within the last 24 hours. You can change that behavior by using parameters that not only allow you to set a different Time Range but also even the default markup.

For example, this:

[wpp range="weekly" stats_views=1 order_by="views"]

... would output the most viewed posts from the last 7 days.

And this:

[wpp range="monthly" stats_comments=1 order_by="comments"]

... would output the most commented posts from the last 30 days.

For a complete list of parameters, check wp-admin > WordPress Popular Posts > Parameters.