WordPress.org

Support

Support » How-To and Troubleshooting » Grouped custom post type added to WordPress 3 Menu

Grouped custom post type added to WordPress 3 Menu

  • I have created a custom post type called “team”
    Each team can belong to only one sport which i have set as a category (hockey, baseball, football, etc)
    I have code in functions.php for creating custom menu options based on custom taxonomy.

    I would like to modify this to manage the teams by category, I can manipulate the code to update the menu; what I need is a listing if the teams by sport.
    so that I get all categories only used for custom post type team, and all teams in that category.
    a list of custom post type with category ordered/grouped by category

    Division 1
    hockey
    team 1
    team 2

    baseball
    team 4
    team 8

    Football
    team 3
    team 5
    team 6
    Team 7

    Division 2
    hockey
    team 16
    team 12

    baseball
    team 9
    team 11

    Football
    team 10
    team 13
    team 14
    Team 15

  • The topic ‘Grouped custom post type added to WordPress 3 Menu’ is closed to new replies.