WordPress.org

Ready to get started?Download WordPress

Forums

How do I query custom taxonomies and the posts they have for a custom post type? (1 post)

  1. Ayman Aboulnasr
    Member
    Posted 3 years ago #

    hello everyone and thank you in advance for any help.

    I have registered a custom post type called: cusptype
    I have registered custom taxonomies called: custax
    I have created a few custom posts

    What would be the query that I should be using to have the following output:

    For custype1:

    custax1
    post1
    post2

    custax2
    post3
    post4
    post5

    custax3
    post6

    In other words, how can I get the names of each custom taxonomy with all the posts they belong to, for a given custom post type?

    Thanks again :)

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by Ayman Aboulnasr
  • This topic is not resolved
  • WordPress version: 3.1.2