This is my code
<?php
if (in_category(array(33,34,35,38,39,40))
&& is_user_logged_in()){ ?>
<a href="http://url" rel="nofollow">CLICK HERE </a>
<?php } ?>
<?php
if (in_category(array(32,53,54,55))
&& is_user_logged_in()){ ?>
<a href="http://url" rel="nofollow">CLICK HERE </a>
<?php } ?>
I am calling it with include TEMPLATE .
In some single post both links show up, how do I fix this. How do I end the first if statement or is there a better way to write this.
any help is welcome. Thank you in advance.