Now done so that if it finds a value in the array, then the link is displayed.
And how to make it displayed, if the value is not found?
<?php if (in_array('find-us', $pages)) { ?><a href="?p=find-us"><img src="images/icon_map.jpg" /></a><?php } ?> Now done so that if it finds a value in the array, then the link is displayed.
And how to make it displayed, if the value is not found?
<?php if (in_array('find-us', $pages)) { ?><a href="?p=find-us"><img src="images/icon_map.jpg" /></a><?php } ?> Source: https://ru.stackoverflow.com/questions/505344/
All Articles