[resolved] sorting post in single catagory by meta key? (1 post)

  1. w12gilbert
    Posted 4 years ago #

    hey everyone,

    I am trying to sort one of my catagories descending by a meta_value_number I seem to be doing something wrong or not calling the quesy correctly.

    I am using the Genesis theme.

    I copied the index.php and made a template cotest-videos.php and that works ok and only shows the videos from the contest-videos catagory. but i can't seem to affect/effect how they are sorted. I am trying to sort the posts in this catagory by a meta key "facebook_likes" order descending by the number of likes each video has. trying to show five per page with pagination at the bottom of page.

    here is the template code and the page to my site where i am trying this is http://billgilberthomes.com/category/contest-videos/

    [Code moderated as per the Forum Rules. Please use the pastebin]


Topic Closed

This topic has been closed to new replies.

About this Topic