I'd like to create robust topic pages for my categories, and I'm trying to figure out the best way to go about this. Help!
For a project I'm building, I decided to go with Wordpress because it was the most flexible (yet robust) CMS that met most of my needs. But I'm running into trouble trying to build sophisticated topic pages for each of my blog categories, and any brainstorming help you can offer would be helpful.
For each category, I want to create a page that might include several elements. (
You can view an example of a prospective topic page here.) The page might include:
- An overview introducing the basics of the subject to visitors that don't know much about it. This might include a video or a map.
- A background section summarizing recent events related to the subject, possibly including a graphic timeline.
- A list of related subtopics or issues, with a few paragraphs describing the issue.
- Titles and excerpts of the most recent posts in the category, as in a typical category archive.
There are several ways I can think of to approach this, and each of them has advantages and disadvantages. I'm a PHP novice, but I've coded a few Wordpress templates from scratch before. I think I'd be uncomfortable writing a plugin, but reasonably comfortable writing specialized templates.
Some techniques I'm imagining:
- Create specialized templates for each category. This is so lame and un-maintainable I've removed it from serious consideration.
- Extend the category archive page to pull in pages that have the category ID listed in a custom field. For example, I might create an "Overview" page for each category that includes the overview information, a "Background" page that includes the background info, and a "Related Issues" page. For each of these pages, I'd specify a custom field that matched the desired category ID, then possibly another custom field with the type of information included in the page (e.g. "overview," "background," "related").
This would have the benefit of keeping everything in Wordpress, so you could ostensibly find and maintain the content without having to dip into code. On the other hand, it seems somewhat cumbersome and technically daunting, and the technical structure would be difficult to maintain. If I were to go to these lengths, I may as well try my hand at plugin-building.
- Create pages that have the various sections appropriately styled, that pull in posts from a specified category using a shortcode.
This would be simpler to maintain, but it would take quite a bit of work to replace all the references to category archives with these pages. Plus, pages are hidden from search engines. Also, pages aren't all that flexible from a design perspective. (I don't think, for example, we can give classes to divs inside the Wordpress editor.)
- Use a custom write panel plugin like Flutter or Pods. Flutter's promising, but it's so new I worry it's not stable yet, and the documentation isn't great. And Pods offers a lot of functionality, but much of that functionality is so far outside the Wordpress core functionality (and so thinly integrated with it), that seems to almost negate the benefits of using Wordpress in the first place.
Thanks for reading this far. If you have any advice, insights or recommendations, they would be greatly appreciated.
posted by grrarrgh00 at 11:45 AM on March 11, 2009