WordPress.org

Support

Support » How-To and Troubleshooting » Query posts by custom taxonomy term name

Query posts by custom taxonomy term name

  • NAIJADEALZ
    Member

    @naijadealz

    Hi,

    I would love to get the list of posts by their custom taxonomy (=store) name.

    Here is what I have so far, but it is not working.

    Please help with the code.

    $postslist = query_posts('numberposts=5&order=DESC&orderby=meta_value&showposts=5&meta_key=hits&post_type=post&store='.$mystorename); if(count($postslist) > 0){ ?>

    ‘Store’ is the custom taxonomy
    $mystorename is a variable holding the name of the store i want to query by.

    Any help will be appreciated.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Query posts by custom taxonomy term name’ is closed to new replies.