Hi,
Can you explain that a bit more? Do you only want to:
1. count posts from a specific category or
2. display the views in posts from specific category
Because that would be two different things.
Hi dFactory Team,
Sorry for Not explain correctly. The thing I need is to show only the popular Posts from only one category. Let me explain: Currently I’m showing in my Sidebar the “Top 10 ( latest 30 days)” posts and there are shown the posts from my Two Post Categories. I need to show Posts from only one category. So it would be great if you can add an option to select the post categories we want to show in front-end. So that we can have the flexibility to select only one post category, or several categories, or all categories.
Thank you in advance for your help.
Hi @dfactory Team,
Sorry for Not explain correctly. The thing I need is to show the popular Posts from only one category. Let me explain: Currently I’m showing in my Sidebar the “Top 10 ( latest 30 days)” posts and there are shown the posts from my Two Post Categories. I need to show Posts from only one category. So it would be great if you can add an option to select the post categories we want to show in front-end. So that we can have the flexibility to select only one post category, or several categories, or all categories.
Thank you in advance for your help.
Hi,
If it’s a widget you’re using to display the most popular posts then there’s a “pvc_most_viewed_posts_args” filter hook that you can use to adjust that. What this filter allows for is to modify the parameters for the WP native get_posts() function. So it can handle the same parameters including categories. Please try to play with this filter hook and you should be able to come up with a solution.