By default, the Foodie Pro featured posts widget does NOT include a option to display posts by the number of times a post has been viewed. However, you can add this option to the drop down menu so it does look like this :
Note : The views count does not start until you load each post after installing the code.
Installation Steps
There’s 2 steps :
- # Upload the folder named featured-posts to the foodiepro > lib > widgets folder like this
- # Copy & paste the PHP code ( without the opening PHP tag ) from the functions.php file to the end of the Foodie Pro themes functions file
Was This Tutorial Helpful?