Forums

sub set of custom taxonomies (3 posts)

  1. estevanix
    Member
    Posted 10 months 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
    Volunteer
    Posted 10 months ago #

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

  3. estevanix
    Member
    Posted 10 months ago #

    Thanks, bro. That worked out.

    Best regards,

Reply

You must log in to post.

About this Topic