Hi @bsilent,
What do you mean with “the right posts”? What’s the expected output and what are you seeing instead?
Also, how long has WPP been installed on your site?
Hello Sir,
I’m trying to have the popular posts return the most popular posts within a year by most views. I see the drop down minutes hours and days so I selected days and inserted 365 for the days but they dont match the same posts as the ones that my site stats say are the most popular. It does however work when I change the drop down to 30 days but I’m trying to get it to return popular posts within a year. Thank you again for your help. Its been several months that WPP has been installed sir.
I’m trying to have the popular posts return the most popular posts within a year by most views.
I’m sorry but that’s not how the Tame Range feature works.
The Time Range feature retrieves the most viewed / commented posts from the current date & time to N days back.
This means, in your case, that WPP will obtain the most viewed / commented posts from 2018-04-20 12:37:25 to 2017-04-20 12:37:25 (365 days from the current date & time).
It is possible to display only the most viewed posts from this year, but you’ll have to code a bit. See the WPP_Query class and the hooks in it for more details.
P.S.: If you don’t know how to code / don’t have the time for it, I’m available for freelance work.
Thank you very much sir. I did add the [wpp range=’custom’ time_quantity=1 time_unit=’year’] but ran into a little bit of trouble trying to exclude some posts I tried to add [wpp pid=’60,25,31′] like this [wpp pid=’60,25,31′ range=’custom’ time_quantity=1 time_unit=’year’] but was unsuccessful. I was wondering if you could tell me what I’m doing wrong. Again thank you very much for your time and effort. It is greatly appreciated.
Hi @bsilent,
year isn’t valid value. The ones the time_unit parameter accepts as valid are minute, hour, day, week or month. Here’s the equivalent:
[wpp pid='60,25,31' range='custom' time_quantity=365 time_unit='day']
Thank you for your help sir. I really appreciate it.