Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    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 2 years ago by Hector Cabrera. Reason: Edited for brevity and better formatting
    Thread Starter pepe543

    (@pepe543)

    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.

    Plugin Author Hector Cabrera

    (@hcabrera)

    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.

    Thread Starter pepe543

    (@pepe543)

    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.

    Plugin Author Hector Cabrera

    (@hcabrera)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to order posts query by views number?’ is closed to new replies.