My programmer isn’t available at the moment and I need to make a change to the system.
I have tried to copy what he has done before, but I keep getting errors.
So what I want to do is to have the metatags hidden when a url stats with /id.
He has done the same with the title tag like this:
<?php if (!StartsWith($_SERVER['REQUEST_URI'], '/id/') echo "<title>$pagetitle</title>"; ?>
Result: title is hidden when an url goes like http://www.site.com/id=15
Below is the metatag as it is:
<?=isset($metatags) ? $metatags:"" ?>
I tried to copy things and make it hide the meta with the code below:
<?php if (!StartsWith($_SERVER['REQUEST_URI'], '/id/') isset($metatags) ? $metatags:"" ?>
What am I doing wrong? Can anybody be so kind to provide me with the correct line?
Thanks,
You can combine the existing “metatags” line with what your programmer has done previously to hide text based on the request URI, by saying:
OR
They mean the same thing; you may use whichever you wish.