Title: #_AVAILABLESPACES
Last modified: August 24, 2016

---

# #_AVAILABLESPACES

 *  Resolved [bocaj_vo](https://wordpress.org/support/users/bocaj_vo/)
 * (@bocaj_vo)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/_availablespaces/)
 * Hi
    is there a possibility to tell my site to show “enough” if there is more 
   than 5 spaces free and else show the number of #_AVAILABLESPACES?
 * What would be the code for that? and could I enter it in the Eventlist??
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

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

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/_availablespaces/#post-6048268)
 * Hi,
 * You could use something like this:
 *     ```
       {fully_booked} Enough {/fully_booked}
       {has_spaces} #_AVAILABLESPACES {/has_spaces}
       ```
   
 * [http://wp-events-plugin.com/documentation/conditional-placeholders/](http://wp-events-plugin.com/documentation/conditional-placeholders/)
 *  Thread Starter [bocaj_vo](https://wordpress.org/support/users/bocaj_vo/)
 * (@bocaj_vo)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/_availablespaces/#post-6048271)
 * Thank you but I mean if there is 5 spaces left: don`t worry there is enough free.
   
   if there is less than 5 spaces show them the actual number of available spaces.
 * <strong>Is there a way to do that?</strong>
 * If it is fully booked it says full I got that with
    `{fully_booked} full{/fully_booked}`
 *  Thread Starter [bocaj_vo](https://wordpress.org/support/users/bocaj_vo/)
 * (@bocaj_vo)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/_availablespaces/#post-6048438)
 * Is there any way to create something like a if #_AVAILABLESPACES>5 than “enough”
   function???
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/_availablespaces/#post-6048439)
 * To do that you’d need to create a custom conditional placeholder:
 * [http://wp-events-plugin.com/tutorials/creating-conditional-placeholders-for-events/](http://wp-events-plugin.com/tutorials/creating-conditional-placeholders-for-events/)
 *  Thread Starter [bocaj_vo](https://wordpress.org/support/users/bocaj_vo/)
 * (@bocaj_vo)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/_availablespaces/#post-6048447)
 * Hi
    I a not really good in poetry so I wonder what the necessary tweaks would
   be for my problem. Can anybody help ?
 * > `
   > add_action(’em_event_output_condition’,’my_em_styles_event_output_condition’,
   > 1, 4);
   >  function my_em_styles_event_output_condition($replacement, $condition,
   > $match, $EM_Event){ if( is_object($EM_Event) && preg_match(‘/^has_style_(.+)
   > $/’,$condition, $matches) && is_array( $EM_Event->styles ) ){ if( in_array(
   > $matches[1],$EM_Event->styles) ){ $replacement = preg_replace(“/\{\/?$condition\}/”,”,
   > $match); }else{ $replacement = ”; } } return $replacement; }
 * like where fill I in my #_AVALIABLESPACES thing?
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/_availablespaces/#post-6048521)
 * if you can code you can try to look into this snippet
 *     ```
       if( $EM_Event->get_bookings()->get_available_spaces() <= 5 ){
       …
       }
       ```
   
 *  Thread Starter [bocaj_vo](https://wordpress.org/support/users/bocaj_vo/)
 * (@bocaj_vo)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/_availablespaces/#post-6048558)
 * Wow that is cool, I even understand what is going on in the snippet. Now a real
   noob question where do I enter it?
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/_availablespaces/#post-6048580)
 * you can replace the tutorial if statement with the above snippet.

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

The topic ‘#_AVAILABLESPACES’ 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

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

 * 8 replies
 * 3 participants
 * Last reply from: [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/_availablespaces/#post-6048580)
 * Status: resolved