Does anyone know how to hack a category page to display a designated post?
-
I’ve set my site up to be more like a CMS instead of a blog, and I’d like to hack the category page to display a post in order to look more like a landing page instead of an archive page.
I’d like a particular post to be the body content of a category. I’m not a coder but would like to insert a piece of code that says:
if this is category 6, then display post 5;
if this is category 8, then display post 13;I’ve been able to get almost there with:
<?php if (is_category(‘1’)) {
echo ‘<p>’; the_content(‘post=5’); echo ‘</p>’;
}
?>…but it still displays all the content for every post in that particular category. By the way, category 1 is named Info and post 5 is named Info.
Any help would be greatly appreciated.
Thanks in advance ~
- The topic ‘Does anyone know how to hack a category page to display a designated post?’ is closed to new replies.