Trying to use is_search but not working
-
I used is_search to display “Search Results” on the page if someone searches something on my blog. This is the code I have in my archive.php file
<?php /* If this is a search */ } elseif (is_search()) { ?> <h2 class="archivetitle">Search Results</h2>
However, I tried making a search and the title is not shown. You can see the problem here https://reviews.glumbo.com/?s=asus
How can I fix this problem?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Trying to use is_search but not working’ is closed to new replies.