I'm trying to get a custom function that displays popular posts. But I want to limit the range to within a week. So only the most popular posts within the last 7 days will be displayed.
Is there a way to do this without plugins?
Thanks in advance