Archive page header plugin
-
I’ve just finished creating my first plugin for WordPress.
The purpose of the plugin is to create a header line when you are viewing search results (or date archives or category archives), that will tell you how many results there were & where you are in the results.
eg.
Showing results 1 – 10 of 45 for the search terms search terms.You can download the code here:
http://www.mtaylor.co.uk/wordpress/resultscount.phpsTo use it, all you need to do is install it in the plugins folder & then add:
<?php wp_searchheader()?>to the page template wherever you want the search header to appear.
You can see it in action on any of the archive pages of my site at http://www.elginism.com
Let me know if you have any suggestions on how it can be improved, or any comments on it.
The topic ‘Archive page header plugin’ is closed to new replies.