WordPress.org

Ready to get started?Download WordPress

Forums

Grouped custom post type added to WordPress 3 Menu (1 post)

  1. jester48
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic