WordPress.org

Ready to get started?Download WordPress

Forums

Best Practise: list posts with tag "reviews" sorted by a numeric custom_field? (3 posts)

  1. Marc
    Member
    Posted 1 year ago #

    Hi,

    I know the loop and I know how to build plugins and I also know the templating system. But I want to ask first for the best approach for this task:

    There are Posts in my wp installation with a tag reviews. They have a custom field called "rating" which contains numeric values like "4" or "6.5".

    I want to list them in the same way my archiv is being list but sorted by the highest rating. Best thing would be a nice url like /tag/reviews/sorted/hightest or something like that.

    How do I do this? Do I make a page with a custom loop? A plugin? Is it build in feature? Is there a plugin for that?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

  3. Marc
    Member
    Posted 1 year ago #

    Thank you. I knew that link already. The question is: where do I do this? In a plugin? How to get the parameters as nice urls?

Topic Closed

This topic has been closed to new replies.

About this Topic