• Resolved sir_webs_a_lot

    (@sir_webs_a_lot)


    I’m working on a site that has two types of people, let’s call them Priests and Bartenders, organized across three offices, hypothetically New York, Los Angeles, and Chicago.

    In the back end, currently, we have all the Bartenders together in a “bartender” category and all the Priests in a “priest” category. Each individual bartender or priest is then marked for location.

    In the front end, we have pages for New York, Chicago, and LA, with information about each location, and then a sub page displaying all the Bartenders at that location and a separate sub page displaying the Priests.

    Right now the breadcrumbs are showing

    Home>Bartenders>LOCATION>NAME,
    (Home)>(A list of all the Bartenders)>(All the bartenders in a specific location)>(individual bartender)

    but we would like them to read

    Home>LOCATION>Bartenders>NAME
    (Home)>(Page for the location)>(All the bartenders at this location)>(individual bartender)

    Is something like this possible?

    https://ww.wp.xz.cn/plugins/breadcrumb-navxt/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Havlik

    (@mtekk)

    Well, what you are tying to do here doesn’t exactly lead to a clean implementation within WordPress (not until taxonomies and post types are combined). To be semantically correct, you’d do the following:

    • Have a “person” custom post type (person is a thing)
    • Have an “occupation” custom taxonomy (occupation is not really a “thing” in this case)
    • Have a “location” custom post type (location is a thing)

    However, this doesn’t really work as there isn’t a way to make “occupation” be a child of “location” at the moment. So it would need to be a custom post type as well. Then, you just needs to ensure that for each location, there is a child occupation post type for all relevant occupations. Then, each person would need to be a child of the occupation post type. Naturally, this has the limit of a person being able to only reside in one location and only hold one occupation. If you can setup this relationship, and set “post parent” as the option for “hierarchy” for each of the post types, Breadcrumb NavXT will display as desired.

    If you need a fully custom breadcrumb structure, there is a premium extension, called “Breadcrumb NavXT Menu Magic” which allows you to specify page/post/taxonomy hierarchies for Breadcrumb NavXT to follow using a WordPress menu.

    Thread Starter sir_webs_a_lot

    (@sir_webs_a_lot)

    Thanks, John. I’ll look into Menu Magic.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Categories vs. Site Map’ is closed to new replies.