I read the link at boren.nu and it doesn’t look like it applies in my case.
In that article, he talks about being able to load different templates based on the type of query being made – but it is still based on either a post or a page being created beforehand.
For the templates that he talks about to work you need to have a page created (static or virtual) or a post entered into the database in order to call the template and display it.
I made various templates, all with no problem at all.
I made one called menu.php that included the “get header.php”, “get footer.php”, and it also included the “get sidebar.php” which is what I want to do. I also created a link on a navigational bar to link to the page called menu. Everything worked fine except for one thing:
The only problem with that (and that’s what I’m trying to prevent) is this new menu page is listed under the “Page Section” (in the WP 1.5 default Kubrick theme) with all the other article pages and all the other sidebar info.
I’m trying to create a menu page to act like a sort of content or index page but I don’t want it to be listed with all the rest of my virtual article pages. I do not want that menu page to be listed or visible on any page. I just want to click on the navbar button and a page appear with all the sidebar stuff included.
Instead of a dual column page with post section on the left and sidebar section on the right, I want a single column page with index on one page and the sidebar on another page. But ideally, I would like the menu.php to function just like an index.php file.
I’ve tried to create a situation where, when I type in https://www.mysite.com/menu.php
, I get a page with the sidebar info in it. Everything I’ve tried so far gives me a 404 error page when I try to access the menu.php file.