Support » Themes and Templates » how to use category AND archive templates

  • I am using a category specific template (category-2.php) to display a category (plus the post-templates-by-cat plugin to display the posts for that cat using single-cat-2.php). I would also like to display the archives of this category differently – e.g. by date and title. I can’t use the archive template, since there is a category template. I have seen some plugins here to create an archive PAGE, but I do not want to create a page as I don’t want it to show up in the menu (except in this category). I would be okay with “hard coding” it into the above mentioned category 2 templates if there is a way to do it. i.e. what I would want the code to do (in English) is “please select the posts from category 2 and display them in the archive.php template” Is there a way to translate this into PHP that someone could explain to me? (I am pretty good with English – with PHP…not so much…)


Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how to use category AND archive templates’ is closed to new replies.