WordPress.org

Ready to get started?Download WordPress

Forums

How to loop all custom type categories in one page? (5 posts)

  1. modeman
    Member
    Posted 1 year ago #

    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?

  2. graphical_force
    Member
    Posted 1 year ago #

    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....

  3. modeman
    Member
    Posted 1 year ago #

    Here is the pic how the loop should work

    picture

    Taxonomy name (Taxonomy)
    -- taxonomies posts
    Taxonomy name (Taxonomy)
    -- taxonomies posts

  4. graphical_force
    Member
    Posted 1 year ago #

    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?

  5. modeman
    Member
    Posted 1 year ago #

    All terms (all posts)

Topic Closed

This topic has been closed to new replies.

About this Topic