![]() |
How to display wordpress popular posts by views of each category?
Hello guys,
Can someone help me with this code? I want to display most popular posts by views of each category... I already have a code working but only shows the popular posts of all, not for each category... Here is my code in single.php file: PHP Code:
PHP Code:
Code:
query_posts('posts_per_page=8&meta_key=post_views_count&orderby=meta_value_num&order=DESC'); Hope to see some help here :) Thank you guys! Kind regards, EN1GMA ---------------------- EDIT ---------------------- I found out that adding a &cat= after DESC and enter the id number for the category it works :) But I dont want to show a specific category, I want to show the category where the post is in... Any ideas? |
Check for plugins
|
Quote:
|
Hi EN1GMA,
I suggest you use Wordpress plugin "WordPress Popular Posts". If you have any question, do not hesitate to post here or email me, I will help you. Regards. |
Thanks for this information I was not aware of this Plugin,
I will give a try. Plugins are the way to go on Wordpress for sure, I use quite a few of them it really makes life easier! Thanks again for post! TraffDAQ - Multiply Your Adult Traffc! TraffDAQ is an awesome one-of-a-kind, automated traffic exchange network for adult webmasters. Turn Random Clicks on Your Site into Brand New Visitors FREE! http://www.tubie.in/wp-content/uploads/2015/09/h7.gif |
All times are GMT -7. The time now is 09:26 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc