Hi and thanks in advance for reading this long question.
I'm about halfway through building a site for a NYT bestselling author, and have hit a point where I realize I may not have organized myself in the best way in terms of data management. Before I go back and rebuild, I figured I should ask the experts their opinions.
My stumbling block is how do I code the main Books archive page. I'd like it organized like this:
Genre (organized in specific order, can be hard-coded)
-- Series (organized by which series contains the most recently published book OR by custom post order set by admin - either is acceptable)
--- Books (organized by custom field "Book in Series")
-- Series
--- Books
Genre
-- Series
--- Books
... etc.
I would also like each Genre and Series to have its own archive page. For the Genre archive it should again be organized by Series and then books within each series.
Here's what I'm set up now:
Books (Custom Post Type)
- Original Publication Date (custom field)
- ISBN (custom field)
- Featured Characters (custom taxonomy)
- Secondary Characters (custom taxonomy)
- Series name (custom taxonomy)
- Book in Series (#) (custom field)
- Synopsis (custom field)
- Additional freeform content (default content of post type Books)
Book Excerpts (Custom Post Type)
- sets Parent ID for related book via dropdown list of books / custom field
Book Praise (Custom Post Type)
- sets Parent ID for related book via dropdown list of books / custom field
My concerns
- What is the best way to code the Books archive page? Would it more efficient/easier to code if I made Series and Genre custom post types with parent/child relationships between themselves and the books, instead of custom taxonomies? EDIT: I ask because when I went to code this page I realized I would need to do multiple nested loops (I think, though maybe I could use something like the solution suggested here?).
- Should I make Book Excerpts and Book Praise custom fields instead of separate custom post types? I need the content for each to display on a separate page from the single Book page to which it is attached, as it can be quite long.
- Is there anything else I'm doing in a needlessly complicated way?
If it makes any difference, I have been using the Verve Meta Boxes and Custom Post UI plugins to create my various custom post types / taxonomies / custom fields.
Thank you again for taking the time to read this and also for any advice you can throw my way! :-)