Support » Developing with WordPress » $_GET not working inside header.php

  • Resolved italoborges

    (@italoborges)


    Hello,

    I’m having this problem from nowhere because was working before.
    There is a blue bar where I get the query string and put inside the bar using:

    <div class="nombre-site"><? if(!empty($_GET['asearch'])) echo $_GET['asearch']; ?></div>

    Now, on localhost is working, on production not. WordPress is converting the php code above into a comment tag.

    Anyone can help me?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.