how can I get a hardcoded href to load arhives.php or other page templates
-
Thanks for taking the time to read! Tried to search around the forum for the answer but not sure I have my terminology correct. Here is the issue that I am having.
I have hard coded in an href into my sidebar that I would like to to load the archives.php template with, but I am unable to figure out how to do this. I have pointed it to both…
https://localhost:8888/wordpress2/archives
https://localhost:8888/wordpress2/archives.php(as you can see I am creating this custom them locally so I am not be able to provide links although I am thinking about loading it onto a server just so I can get some help here. Also note that this is a child theme)
Neither of the above links actually load the template. They shoot me to the index.php and throw the “not found” error.
Any direction on how to make a static link/url load up the archives.php template would be much appreciated. I am sure that this is a simple fix and I am just missing it.
Here is what my href looks like exactly…
<li><a href="https://localhost:8888/wordpress2/archives.php">View Full Archives</a></li><br />
The intention is to take to load the archives.php template and then be able to fumble around with the loop any way I want once on that page.
Thanks again for anyone who takes time to review!
- The topic ‘how can I get a hardcoded href to load arhives.php or other page templates’ is closed to new replies.