Custom Post Type Structure
-
I’m going to attempt to rebuild my setup using Custom Post Types (I currently use pages, and Advanced Custom Fields). That being said, I have a few questions about the structure that I’m hoping I can get some insight on.
For starters, a bit about my site. My site is focused on night life / tourism in the Burlington, Vermont area. As of now, I plan to cover bars, dining, music, hotels, local events, and eventually more (such as taxi companies). Within each category, I have sub categories, like so:
Bars
Music
-Artists
-ShowsDining
-Restaurants
-Diners
-Delis
-Street VendorsLodging
-Hotels
-Inns
-Bed And Breakfasts
-ResortsMy two largest concerns are as follows:
-Do I make a custom post type for each main category (Bars, Music, Dining, Lodging), for every category (sub categories each getting their own, with a parent custom post type of the main), or do I simply make a “Venue” custom post type? I’ve never actually worked with custom post types, so I’m not sure how much organization here is “over engineering”, or if being as specific as possible is preferred.
-This part really confuses me – do I use the archive pages for these custom post types, or can I keep my normal “page” setup for the hubs of each category? Every main category has a template (for all of them, handled dynamically), as does every sub category (also using a template, dynamic). For instance, I need the url structure to remain site.com/dining/restaurants/venue-name, with site.com/dining being a “hub” page that leads to all dining options (my template does this), restaurants being the hub for restaurants (it has a template as well), and the venue using the specified template. Can I retain the hierarchy for my urls, and should I keep using “pages” for the “hub” areas, or should I handle it differently?
I know that’s a lot to read / take in, but I really want to make sure I structure this correctly, as there’s kind of no going back once I lock it in and starting building out. Keep in mind that this site is for me only, and that code / structure is for my eyes only.
anightinburlington.com
The topic ‘Custom Post Type Structure’ is closed to new replies.