Search, search.php
-
Hello
I use a theme where it is the MAIN LOOP which performs and displays the search results.
Extracted from my index.php :
<?php if ( is_search() ) : ?> <h2> Results: "<?php the_search_query(); ?>":</h2> <?php endif; ?>
Then the main loop starts.
In other themes though, a separate “search.php” file displays the search (it usually contains another loop).
I’ve been searching through all I could think ok , but I DO NOT UNDERSTAND how or where I can force my theme to branch towards another file and ignore the main loop.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Search, search.php’ is closed to new replies.