WordPress.org

Ready to get started?Download WordPress

Forums

sub set of custom taxonomies (3 posts)

  1. estevanix
    Member
    Posted 2 years ago #

    Hello there

    I have a custom post with custom taxonomies in a hierarchical structure . something like:

    Variations (taxonomie name)
    ---Colors
    ------Blue
    ------Red
    Sizes
    ---Man
    ------01
    ------02

    And so on. I want to show only the "colors" subset of a product within the loop. What is the best way to archive that?

    Thanks a lot,

  2. MichaelH
    Member
    Posted 2 years ago #

    Use the Taxonomy Parameters of WP_Query with the post_type = your custom post type

  3. estevanix
    Member
    Posted 2 years ago #

    Thanks, bro. That worked out.

    Best regards,

Topic Closed

This topic has been closed to new replies.

About this Topic