Title: Adding into wp_config.php doesn&#039;t work
Last modified: August 22, 2016

---

# Adding into wp_config.php doesn't work

 *  Resolved [uclackitech](https://wordpress.org/support/users/uclackitech/)
 * (@uclackitech)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-into-wp_configphp-doesnt-work/)
 * Hi I’m trying to add
 * define(‘EM_CONDITIONAL_RECURSIONS’,2);
    define(‘EM_AJAX’,true);
 * into my wp-config.php file, but nothing seems to happen when I add it. I tried
   placing it at the top, middle, and end, but nothing happens.
 * Is there another way I can do this? I’m not sure why it’s not working.
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-into-wp_configphp-doesnt-work/#post-5321985)
 * Hi,
 * It shouldn’t make any difference where it goes but putting it at the end should
   be fine.
 * Can you explain what’s not happening? Then we can probably work out why these
   constants are being ignored.
 *  Thread Starter [uclackitech](https://wordpress.org/support/users/uclackitech/)
 * (@uclackitech)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-into-wp_configphp-doesnt-work/#post-5322089)
 * Hi,
    so I put the two constants at the bottom and went into settings–>formatting
   and was editing the “Default event list format”.
 * For example,
    `{logged_in}{has_bookings}content{/has_bookings}{/logged_in}`
 * displays a blank screen
 * `{has_bookings}content{/has_bookings}`
 * displays “content”
 * As for the ajax constant, my pagination/search button is loading a new page each
   time instead of refreshing (like shown on your demo page).
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-into-wp_configphp-doesnt-work/#post-5322115)
 * What happens if you test with:
 *     ```
       {logged_in}
       logged in
       {has_bookings} content {/has_bookings}
       {/logged_in}
       ```
   
 * Can you post a link to your AJAX page?
 *  Thread Starter [uclackitech](https://wordpress.org/support/users/uclackitech/)
 * (@uclackitech)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-into-wp_configphp-doesnt-work/#post-5322141)
 * With that code, it just displays logged in.
 * [http://uclacki.org/events/event-sign-ups/](http://uclacki.org/events/event-sign-ups/)
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-into-wp_configphp-doesnt-work/#post-5322156)
 * did you mean the ‘Quick Signup’ section on the link above?
 *  Thread Starter [uclackitech](https://wordpress.org/support/users/uclackitech/)
 * (@uclackitech)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-into-wp_configphp-doesnt-work/#post-5322157)
 * The Quick signup part is where I’m trying to do the recursion with the {logged_in}
 * I want that page to have ajax (the search and pagination)
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-into-wp_configphp-doesnt-work/#post-5322165)
 * If only “logged in” is being displayed using the test code above, it could indicate
   the booking date has passed for the event (check the ticket availability dates
   on the Add / Edit Event page), or that bookings are not enabled on that event
   for some reason.
 * On the AJAX issue, is /event-sign-ups/ set as your main events page in the settings?
 *  Thread Starter [uclackitech](https://wordpress.org/support/users/uclackitech/)
 * (@uclackitech)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-into-wp_configphp-doesnt-work/#post-5322183)
 * I don’t think the booking date is the problem because if I don’t nest the conditions,
   the {has_booking}content{/has_booking} works just fine.
 * Yes, the event-sign-ups is set up as my main events page
 *  Thread Starter [uclackitech](https://wordpress.org/support/users/uclackitech/)
 * (@uclackitech)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-into-wp_configphp-doesnt-work/#post-5322211)
 * any reason why the event sign ups page isn’t AJAX?
 * is there another way I can manually set AJAX/recursion other than the wp-config
   way?
 * Any help would be appreciated.
 * Thank you
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-into-wp_configphp-doesnt-work/#post-5322215)
 * hmm, did you mean when using the search form under [http://uclacki.org/events/event-sign-ups/](http://uclacki.org/events/event-sign-ups/)?
   or when you are booking an event under single events page?
 *  Thread Starter [uclackitech](https://wordpress.org/support/users/uclackitech/)
 * (@uclackitech)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-into-wp_configphp-doesnt-work/#post-5322216)
 * using the search form and pagination.
 *  Thread Starter [uclackitech](https://wordpress.org/support/users/uclackitech/)
 * (@uclackitech)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-into-wp_configphp-doesnt-work/#post-5322275)
 * any help?
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-into-wp_configphp-doesnt-work/#post-5322278)
 * maybe you can try conditional placeholder {bookings_open}content{/bookings_open}
   or {bookings_closed}content{/bookings_closed}

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Adding into wp_config.php doesn't work’ 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

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

 * 13 replies
 * 3 participants
 * Last reply from: [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/adding-into-wp_configphp-doesnt-work/#post-5322278)
 * Status: resolved