Separate Archives Page
-
Instead of displaying the “Archives” and “Categories” in the sidebar, I would like to create links from the main page to separate archives and categories pages. My attempt to accomplish this was met in error and any suggestions would be greatly appreciated.
I created a file called archs.php and linked to it from the main page. The first line of code in archs.php calls <?php get_header(); ?>. The following error occurs when I attempt to link to this page from my main page: Fatal error: Call to undefined function get_header() in /home/mocha/www/wp-content/themes/default/archs.php on line 1. I don’t understand why I’m unable to call this function as it is no different than index.php or any other WP document.
If someone has a better method for accomplishing this, I’m all ears (eyes)!
- The topic ‘Separate Archives Page’ is closed to new replies.