Hi @pepe543,
Not sure to be honest. I have never tried something like that so I can’t say for sure.
I guess something like ?orderby=meta_value&meta_key=views_total or ?orderby=meta_value_num&meta_key=views_total may work? Give it a try and report back your results.
-
This reply was modified 3 years, 8 months ago by
Hector Cabrera. Reason: Edited for brevity and better formatting
Yeah,
Found a solution here:
https://wordpress.stackexchange.com/questions/269105/orderby-post-views
—
Also, I would like to ask, if it’s possible to use the wpp plugin, to create something like a view count for custom taxonomies (like actors).
Not so much to keep a historical view count, but more to create a weekly popularity ranking. (Without blowing up the server performance).
You can lock this topic.
Thanks again.
Found a solution here
Nice! Thanks for sharing.
I thought about that too but figured that maybe WordPress already provided that feature out of the box. I suppose that’s not the case then?
Also, I would like to ask, if it’s possible to use the wpp plugin, to create something like a view count for custom taxonomies (like actors).
Unfortunately no, WPP doesn’t track taxonomy (tags, categories, etc.) page views precisely because of performance. (Plus the name of the plugin is WordPress Popular Posts, not WordPress Popular Taxonomies nor WordPress Popular Items :P)
The data is sort of there already though: you could get the views count of every post/page/CPT linked to a specific taxonony, sum everything and you’d get the total amount of views related to it. This would likely require writing some custom database queries and whatnot but I guess you get the idea.
Are you open to developing this?
Maybe as an addon plugin?
I would gladly pay for your time.
Please let me know how to contact you privately, if you could/would.
Thanks again.
Yeah, sounds like a fun project actually.
Please let me know how to contact you privately, if you could/would.
Have a look at my profile page, you’ll find my website in there.