Post Ranking View
This plugin generates a list of more pupulares posts based on the number of visits the post received. The plugin uses cookies to ensure that the user’s visit is counted only once in each post, making the manipulation of the ranking. You can set how many posts will be displayed in the ranking set tha
This plugin generates a list of more pupulares posts based on the number of visits the post received. The plugin uses cookies to ensure that the user’s visit is counted only once in each post, making the manipulation of the ranking.
You can set how many posts will be displayed in the ranking set that only posts from a particular CPT or a particular category will be taken into consideration, among other settings.
Contribute
You can contribute to the source code in our GitHub page.
To install just follow the installation steps of most WordPress plugin’s:
e.g.
- 01Download the file lb-back-to-top.zip;
- 02Unzip the file on your computer;
- 03Upload folder post-ranking-view, you just unzip to /wp-content/plugins/ directory;
- 04Activate the plugin through the Plugins menu in WordPress;
- 05Be happy.
Showing the ranking of posts
To display a list of posts you have two options:
1 – Let the plugin generate the HTML
2 – Save an array with the data in a variable
Parameters of the function
<?php displayRanking( $amount, $post_type, $category, $print, $thumb ); $amount - Amount of posts to be displayed. Default = 5 $post_type - Type of post that should be considered in the ranking, if not set all kind of posts will enter the ranking. Default = null $category - Category that should be considered in the ranking, if not set posts from all categories will enter the ranking. Default = null $print - Sets whether HTML is returned or an array with the posts ranking. Default = null ( display HTML ) $thumb - Show thumbnail or not - true to display thumbnail, default false ?>
Frequently asked questions.
How do I change the look of the list of posts?
The plugin does not bring any CSS style for the list of posts, the visual follows the style sheet theme, so to change the look just customize the CSS of the theme.