I am counting views per entry, and I have a 'Most Popular' section on the homepage that shows the most popular entries using
orderby="view_count_one"
I am finding this list tends to be the oldest entries, since they have been around so long they have the most views.
Is there away to either:
- divide the views by number of days active and sort on that or
- only show the last 30 days?
Any ideas?
Thx!
Added: I tried display_by="day" limit="30" but that lists all entries in 30 days and kills my entry limit breaking the page layout. I am currenty showing 7 entries, and 30 is too much.
For example, I would need somethind like display_by="day" day_limit="30" limit="7" (I know that wont work ;) just example)
I also tried to set the start by date range by using:
localize->format_date('%Y-%m-%d %H:%i', ee()->localize->now - 3600); ?>from PHP conditional inside EE conditional - parse order problem
but that brakes my page and throws an error about line 45 referring to ()