cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
279 stars 83 forks source link

Valid 'range' values? #170

Closed MastaBaba closed 6 years ago

MastaBaba commented 6 years ago

I just discovered that when I set the 'range' to 'last14days', the plugin actually reverts to 'daily'. Setting the range to 'monthly' works as expected.

What are acceptable 'range' values?

cabrerahector commented 6 years ago

Hi there!

Go to Settings > WordPress Popular Posts > Parameters and you'll find the complete list of acceptable values for this and other parameters.

MastaBaba commented 6 years ago

I do?

I see: "last24hours", "last7days", "last30days", "all", "custom"

But, "monthly" also works, so this does not seem to be the full list.

I suppose I could generate a custom range, but a default range is neater.

cabrerahector commented 6 years ago

Ok, here's the deal:

As you can see, daily, weekly and monthly are just aliases of last24hours, last7days and last30days, respectively. It's not like there are some super secret time ranges no one should know about (what would I gain from hiding that from users anyway? :P)

MastaBaba commented 6 years ago

:) No one said anything about hiding.

Thanks!