Custom post type with categories, looking for specific slugs
-
Hello, I am trying to create a
locations
post type where I can add parent categories and sub-categories, where the slug would reflect the complete hierarchy.For example, I want to have a locations page that lists all my locations, which would be parents categories – eg, Los Angeles, Chicago, New York. Then, each of those parent categories have sub-categories- eg, for LA, it would be Hollywood, Beverly Hills, Malibu. Then for each one of those, it would have the actual address post – eg, 1 Hollywood Blvd, 100 Sunset Ave, 500 Vine St. So the actual individual post would be 1 Hollywood Blvd, and the slug would be
mysite.com/locations/los-angeles/hollywood/1-hollywood-blvd
.And my locations page would show every parent location, each parent location page would show the sub-categories in there, and each sub-category page would show each address post.
Is that possible and easy to do with custom post types?
- The topic ‘Custom post type with categories, looking for specific slugs’ is closed to new replies.