| bio | website | mikeheavers.com |
|---|---|---|
| location | Brooklyn, NY | |
| age | 33 | |
| visits | member for | 11 months |
| seen | May 24 '12 at 14:22 | |
| stats | profile views | 1 |
|
Dec 6 |
awarded | Student |
|
May 24 |
awarded | Supporter |
|
May 24 |
comment |
Displaying page content in category archive (archive.php) Yeah - figured that one out. It was a little confusing due to the way the theme I selected was using templates. The template it has selected is "archive.php" but that template outputs categories. Maybe it should be using a category template instead, I don't know. You can see the revised code to see my current workaround |
|
May 24 |
comment |
Displaying page content in category archive (archive.php) @Chip - I want to output page content on a category template, where the category name is equal to the page name. I've used other CMS platforms, such as expression engine, where you can just pull URL segment variables - so you could say if url segment 1 == "east_side" - display page_content for page "east_side" - but I'm not familiar with how to do this for wordpress. |
|
May 24 |
awarded | Editor |
|
May 24 |
revised |
Displaying page content in category archive (archive.php) added 2208 characters in body |
|
May 24 |
comment |
Displaying page content in category archive (archive.php) @Chip - Updated the post to include the full template code, including my hardcoded work around for the issue |
|
May 24 |
comment |
Displaying page content in category archive (archive.php) Definitely does - I actually did this with the help of a plugin, but I was hoping for a more dynamic way to do it. I installed a plugin called "Improved Include Page" which allows you to output a page's content in any template using its ID. So I wrote a switch statement saying switch ($catName) { case "east side": iinclude_page(17); break; I'd like to find a dynamic way to do this though, as there are multiple categories for which I need to add multiple page content. |
|
May 24 |
asked | Displaying page content in category archive (archive.php) |