Correct Syntax
-
Hi! I’m trying to add code in the header so that when the blog post is in a certain category (shopping guides), a tag is added to the post. I’m a total newbie, and can’t get the correct syntax. Can you please help?
I added the following in the generic head section:
<? if(in_category(array(‘shopping-guides’))) {
echo'<meta name=”Ezoic” content=”noads”>’;
}?>Please let me know what should be the correct version.
Thank you!
The topic ‘Correct Syntax’ is closed to new replies.