Title: Conditional placeholders
Last modified: August 22, 2016

---

# Conditional placeholders

 *  Resolved [Menno1987](https://wordpress.org/support/users/menno1987/)
 * (@menno1987)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/conditional-placeholders-4/)
 * I’m trying to use `{has_category_X}content{/has_category_X}` on the single event
   page, but nothing seems to happen. The code itself is also not being showm (unless
   i break the placeholder).
 * I want to use two different forms depending on the event category.
 * I figured, from reading the documentation on the website, i was sepose to use
   it like so:
 *     ```
       {has_category_diner}Content when the event category is diner{/has_category_diner}
       {no_category_diner}Content shown when the event category is NOT diner{/no_category_diner}
       ```
   
 * Where “diner” can be either the name, id or slug. (the slug i want to use in 
   this case is “diner” or NOT “diner”).
 * Any help on the matter would be much appreciated 🙂
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Menno1987](https://wordpress.org/support/users/menno1987/)
 * (@menno1987)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/conditional-placeholders-4/#post-5775553)
 * Already got it working. Turned out, i was editing the wrong page. My bad.

Viewing 1 replies (of 1 total)

The topic ‘Conditional placeholders’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [conditional placeholder](https://wordpress.org/support/topic-tag/conditional-placeholder/)

 * 1 reply
 * 1 participant
 * Last reply from: [Menno1987](https://wordpress.org/support/users/menno1987/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/conditional-placeholders-4/#post-5775553)
 * Status: resolved