• I am trying to pass the <?php the_search_query(); ?> to another page besides search.php … it will not work.

    In more detail: I perform a search … WP passes it to search.php … from here, I have a link and when clicked on will take you to custom-page.php where I’d like to retain the functionality of the <?php the_search_query(); ?> tag.

    Anybody have any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can you pass the <?php the_search_query(); ?> to other pages?’ is closed to new replies.