WordPress.org

Ready to get started?Download WordPress

Forums

custom posts type with custom taxonomy wp_query (34 posts)

  1. donderhaas
    Member
    Posted 3 years ago #

    Also used MichaelH's code mentioned by Ryan Riatno.

    Thank you soooooo much! I have been spending weeks getting this to work :)

  2. theendtimes
    Member
    Posted 3 years ago #

    You guys are awesome thank you everyone!

  3. Eric Rasch
    Member
    Posted 3 years ago #

    I'm also using the code mentioned by Ryan Riatno, and I can get it to list all the custom taxonomies, but it will list all the custom posts under each taxonomy, rather than just listing the 1 or 2 custom posts that actually belong under the custom tax.

    For example...
    Tax X
    Custom Post 1
    Custom Post 2
    Custom Post 3
    Tax Y
    Custom Post 1
    Custom Post 2
    Custom Post 3
    Tax X
    Custom Post 1
    Custom Post 2
    Custom Post 3
    Tax Z
    Custom Post 1
    Custom Post 2
    Custom Post 3

    Whereas what I want is...

    Tax X
    Custom Post 1
    Tax Y
    Custom Post 2
    Tax Z
    Custom Post 3

    Here's my code...

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

    I'm willing to try anything. I've tried about 10 different ways to write this, but they either give me the same results, or no results at all.

  4. Eric Rasch
    Member
    Posted 3 years ago #

    Sorry about breaking the Forum rules...

    Here's a link to the code I posted @ pastebin: http://pastebin.com/0ttqaYjZ

Topic Closed

This topic has been closed to new replies.

About this Topic