Title: Nested placeholders not working
Last modified: September 27, 2020

---

# Nested placeholders not working

 *  Resolved [Tiago](https://wordpress.org/support/users/iam3ple/)
 * (@iam3ple)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/nested-placeholders-not-working/)
 * I have already added the PHP code to the config file, but I still can’t make 
   it work when it comes to nested placeholders
 * Here’s my code:
 *     ```
       {has_location}
       {no_event_location_url}
       <i class="fa fa-map-marker" aria-hidden="true"></i>&nbsp;#_LOCATIONNAME #_LOCATIONTOWN #_LOCATIONSTATE #_LOCATIONCOUNTRY
       {/no_event_location_url}
       {/has_location}
   
       {has_location}
       {has_event_location_url}
       <i class="fa fa-link" aria-hidden="true"></i>&nbsp;#_EVENTLOCATION
       {/has_event_location_url}
       {/has_location}
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnested-placeholders-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [timrv](https://wordpress.org/support/users/timrv/)
 * (@timrv)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/nested-placeholders-not-working/#post-13499917)
 * Hello,
 * Are you adding the code `define('EM_CONDITIONAL_RECURSIONS',3);` Depending on
   how deep it is you may need to use 3 or 4 as value.

Viewing 1 replies (of 1 total)

The topic ‘Nested placeholders not working’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [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

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

 * 1 reply
 * 2 participants
 * Last reply from: [timrv](https://wordpress.org/support/users/timrv/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/nested-placeholders-not-working/#post-13499917)
 * Status: resolved