Title: Correct Syntax
Last modified: October 20, 2020

---

# Correct Syntax

 *  Resolved [anyajones](https://wordpress.org/support/users/anyajones/)
 * (@anyajones)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/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.

 * ![](https://ps.w.org/header-footer/assets/icon-256x256.png?rev=3452717)
 * [Head, Footer and Post Injections](https://wordpress.org/plugins/header-footer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-footer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-footer/)
 * [Active Topics](https://wordpress.org/support/plugin/header-footer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-footer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-footer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [anyajones](https://wordpress.org/support/users/anyajones/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/correct-syntax/)
 * Status: resolved