jackosh
Member
Posted 6 years ago #
I have not seen this topic covered yet in the forums, and it is something that I hope can be answered. I am re-building my website and would like an archive link to use the "search.php" template.
For example, when a user clicks on "March 2006" WordPress uses the Search.php template to display the results.
Is this possible? Preferably without a plug-in!!
What is that "search.php" can do and "archive.php" cannot?
jackosh
Member
Posted 6 years ago #
@moshu: ooooh, I didn't know that I could use archive.php to handle this. I thought I could only use archives.php as a template. The answer is so simple :) Thanks a lot!!
archives.php is a Page template.
archive.php is a template file - recognized by WP and used for displaying monthly and category archive view.
See Template_Hierarchy.
Edit. What I meant: you don't really "use" the archive.php template file but WP is using it.
jackosh
Member
Posted 6 years ago #
right, like it uses search.php! I just didn't know that it existed as something WP would recognize. Thanks again!