Simplifying cpt/taxonomy/database logic for easier management
-
The linked page is an example of a bigger problem:
I have a CPT ‘Elections’, with one template and one listing that applies to all elections posts. (I am using JetEngine and Elementor).
Elections posts include Governments (e.g. United States), Offices (e.g. House of Representatives), Districts, Primaries, and General Elections. Some of these overlap (e.g. House of Representatives District 10 is a General Election page).
As a newbie to web development, I’m struggling to figure out how to build this out logically so that I can easily improve the user experience.
I have set up taxonomies to organize posts by: election type (primary, general election, NOT an election (e.g. a government or office with districts)), government level (governments, offices, districts), and years (2023, 2024, etc. (which affect if the post display results or upcoming election information).
Unfortunately there is so much conditional logic combined with a so-so (yet improving) naming structure, that changing anything in the listings, is difficult to think through, implement, and test.
I just set up a staging/dev environment. (Thank goodness). I plan to get a whiteboard to visualize the database and site structure. But I’m still in this strange place where I have little experience and limited resources to have an experienced dev manage the structure.
I have tried building out separate post types (e.g. Governments) and I may return to that, however, the last time I did this I bit off more than I could chew and ultimately returned to the current structure.
Any thoughts/suggestions for improving the site’s structure (or perhaps finding local development resources for a bit of ongoing advice) would be greatly appreciated.
Thank you!
The page I need help with: [log in to see the link]
- The topic ‘Simplifying cpt/taxonomy/database logic for easier management’ is closed to new replies.