the_search_query(); not working for me
-
I am following a tutorial and I’ve added
<h2>Search results for: <?php the_search_query(); ?></h2>
in my code so that the relevant search terms are displayed but nothing happens. I’ve created a search.php file and copied my index.php code into it. I’ve reviewed the WordPress documentation and I’ve even downloaded the tutorial’s code and copied and pasted it into my file with no success. Please advise.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘the_search_query(); not working for me’ is closed to new replies.