0

I am developing the pages/custom posts for my website, and I cannot wrap my head around exactly what I need to deliver the best solution for my users. My users in this case are editors who log in to wp-admin and manage the content of the pages/posts I have created for them. At the moment, I have a list of the pages and subpages they need, but there will come a time they need to be able to dynamically manage this by themselves (i.e. decide if a page or content is outdated, create new pages and choose if this is a parent or child to something). I have been looking at pages, custom post types, categories, taxonomies and tags to help lay the structure out but I am not completely satisfied.

So for example, let's say I have 12 users on my site and each is responsible for managing a section about Animals so I create a custom post type for each animal (dogs, cats, birds and so on) and therefore these are contained in the left-side wp-admin menu as you'd expect. The user resposible for the Dogs section may then go in and create as many dogs as needed, and then months later, do what is necessary at the time (create, update, delete). Each individual dog (or cat or bird, etc) must be assigned to a subcategory too, these subcategories must be dynamic but relevant to its section only. So maybe the primary category is "Dog" and the subcategory is "Small sized dogs".

On the front end of the site where the other users are actually viewing and using the content, they need to be able to navigate easily. Can I create a "Dogs" page, that gets all custom post types belonging to "Dogs" and just displays them in a list?

mysite.com/dogs would display a list of all the subcategories

mysite.com/dogs/small-size would display a list of all small-sized dogs

mysite.com/dogs/chihuahua would display the chihuahua custom post from the dogs section

Am I over-complicating this solution, or is there another way?

  • What exactly is your question? "is this a good way to do it?" - that is primarily opinion based and very broad and hence not really fit for this question/answer format. (see the help desk for more info) – kero Jul 13 '18 at 9:06
  • If you want the URL structure like this, your system will probably work quite well. I'd consider using only one CPT for all animals, then differentiating via multiple taxonomies. But that's just my 2 cents – kero Jul 13 '18 at 9:11
  • I am not suggesting is this a good way to do it, it is the best way I have managed to achieve it so far, and I am seeking advice to improve it as I am not happy with it. Edit - Would you think it is a good idea to implement hierarchy within the single CPT of Animal? – Rollins Jul 13 '18 at 9:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.