Creating a page that looks like category.php (Template)
-
I apologize in advance as I feel this will turn into “find what’s wrong with the code.”
I am currently using the AutoFocus theme, and I like how the category archive is laid out so I try trying to create a page to follow the same layout as I didn’t want to create a static page. (I realize now that it may have been easier to just change the menu, but I think I’m… 1/3 of the way there?)
Either way, I ended up trying to create a template by taking the code in the category.php and adding it in between the div contents, switching get_excerpt with get_content, and adding <?php query_posts(“cat=#”); ?> near the beginning (which probably is the wrong way to go about this).Category.php: http://threesongbirds.coloursplash.org/?cat=6
Page: http://threesongbirds.coloursplash.org/?page_id=323
The navigation does not work in addition to the obvious differences.If there is an easier way, a plug-in, or people who are willing to help, I will be very grateful.
Thanks.
- The topic ‘Creating a page that looks like category.php (Template)’ is closed to new replies.