WordPress.org

Support

Support » How-To and Troubleshooting » How to loop all custom type categories in one page?

How to loop all custom type categories in one page?

  • I have a custom type “routes” with custom taxonomies.

    I want to loop all “routes” taxonomies with posts

    Loop structure:

    -Custom type Routes
    –Taxonomy
    —posts
    –Another taxonomy
    —posts

    Any idea how to loop like this structure?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you saying you want to loop through all custom post type taxonomies while displaying the posts associated with those taxonomies?

    Ex. Taxonomy #1
    ——– cpt of taxonomy #1
    ——– cpt of taxonomy #2
    ——– cpt of taxonomy #3

    Taxonomy #2
    ——– cpt of taxonomy #2
    ——– cpt of taxonomy #2
    ——– cpt of taxonomy #2

    Taxonomy #3
    ——– cpt of taxonomy #3
    ——– cpt of taxonomy #3

    Etc….

    Here is the pic how the loop should work

    picture

    Taxonomy name (Taxonomy)
    — taxonomies posts
    Taxonomy name (Taxonomy)
    — taxonomies posts

    Do the terms matter for the taxonomies?

    Ex. Taxonomy: Acres
    Term #1: 40
    Term #2: 30
    Term #3: 20

    Etc.

    Or are you just lumping all the terms together under a taxonomy?

    All terms (all posts)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to loop all custom type categories in one page?’ is closed to new replies.