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 } ?> 
  • If you are given an exhaustive answer, mark it as correct (a daw opposite the selected answer). - Nicolas Chabanovsky

1 answer 1

Put the negation operator ( ! ) Before in_array :

 if (!in_array('find-us', $pages)) { 

http://php.net/manual/ru/language.operators.logical.php