$_GET not working inside header.php
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘$_GET not working inside header.php’ is closed to new replies.
The topic ‘$_GET not working inside header.php’ is closed to new replies.
(@italoborges)
8 years, 3 months ago
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]