WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Theme: Valor] Only Show posts (reviews) from a custom taxonomy? (2 posts)

  1. Itechmatrix
    Member
    Posted 1 year ago #

    Hey, On my website http://www.itechmatrix.com/ i have a loop (well i think it's a loop) under the heading of 'Top Games' (on my home page)Which displays post from a custom post type (called Reviews) The 'Reviews' post type has a custom taxonomy entitled 'Consoles' (basically categories) I have 2 Consoles Gaming and Product (yeah i know not consoles but still) and i would like to display posts (Reviews) from only GAMING. how do i do this?

    <?php query_posts('category=category-slug-name'); ?>

    Maybe something like this? but again will it work with the custom taxonomy and where in my code do i place this?

    PS i am using the Valor Theme by web2feel (http://www.web2feel.com/valor/)

  2. Itechmatrix
    Member
    Posted 1 year ago #

    Okay i figured out how! on the index page i simply added
    'console'=>'Gaming' straight after the 'post_type'=>'Reviews' section in the WP_Query part just before the loop!
    Works fine!

Topic Closed

This topic has been closed to new replies.

About this Topic