vcohen
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Best way to do multiple separate queries?@alphaoide, I think you’re right — I need to write a plugin for this.
thanks all for the advice.
Forum: Themes and Templates
In reply to: Best way to do multiple separate queries?Yes, I expected the number was related to the use of multiple loops. I was just wondering if there were any way to get these results with fewer loops. I’m running the loop query to get a single item, several times.
But it looks like that’s just how content retrieval works in WP. If I want a different set of content in a differet area of the page, I have to start a new Loop to get it — even if I only want one item.
Forum: Themes and Templates
In reply to: Best way to do complex category pages?Yep, I’m familiar with Category templates, and have been trying to make my design work with them.
But as I indicated, they really don’t work well for me. I don’t want to refer to categories by number (category-6.php) — it’s too easy for the IDs to change as the blog gets maintained. I have several environments — dev, test, prod — and in the course of reorganizing categories, loading and reloading the DB, etc., the primary keys in the DB can be different from what they originally were. I don’t want to rely on the “magic number” for the News category, I want to use the category named “News”, regardless of its DB ID.
Second, my categories are such that I can’t really have a default “category.php” — each needs its own intro text and has quite different logic to gather content.
Pages give me a way to refer to its template by name, not ID. And they generate a nice URL structure if I nest them. Has anyone else taken this approach?