like my search results?
here is an [example]. Then you’ll need the following:
- Results count Plugin [download here]
- Search Excerpt WordPress Plugin [download here]
- My copy of search.php to add to your skin [download here]
I currently display 5 posts per page but I want to display (at the most) 10 results per search inquiry. My modified search.php file is set to display 10 results per page with the following line of code:
$posts=query_posts($query_string . '&posts_per_page=10');
In order for the Result count plugin to display the result count correctly you will need to open the Result count plugin file results-count/results-count.php for editing and find the line:
global $posts_per_page, $paged, $wp_query, $author_name, $author;
and replace it with:
global $paged, $wp_query, $author_name, $author;
$posts_per_page=10;
I believe that’ll do it.
Other Credits due:
Wordpress Hacks
Like





No comments yet. Be the first!