Title: Plugin coding error for conditional placeholder {not_all_day}
Last modified: November 13, 2024

---

# Plugin coding error for conditional placeholder {not_all_day}

 *  Resolved [Michael Finkenberger](https://wordpress.org/support/users/mitfi/)
 * (@mitfi)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/plugin-coding-error-for-conditional-placeholder-not_all_day/)
 * Dear events-manager team,
 * I like your plugin a lot and use it for our non-profit private choir.
 * While rearranging an events page, I came across the situation that both conditional
   placeholders, {all_day} and {not_all_day} showed the same behavior.
 * Checking your code, I think that I found the following error in events-manager/
   classes/em-event.php starting from line 2206:
 *     ```wp-block-code
       elseif ($condition == 'all_day'){//is it an all day event$show_condition = !empty($this->event_all_day);}elseif ($condition == 'not_all_day'){//is not an all day event$show_condition = !empty($this->event_all_day);}
       ```
   
 * It would be great to correct this code in order to have the related conditional
   placeholder work as expected.
 * I tried the following solution, which seemed to work for me but of course, I 
   cannot be sure whether this would work under all circumstances:
 *     ```wp-block-code
       elseif ($condition == 'all_day'){//is it an all day event$show_condition = !empty($this->event_all_day);}elseif ($condition == 'not_all_day'){//is not an all day event$show_condition = empty($this->event_all_day);}
       ```
   
 * Thanks and kindest regards
 * Michael

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

 *  [natsch](https://wordpress.org/support/users/natsch/)
 * (@natsch)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/plugin-coding-error-for-conditional-placeholder-not_all_day/#post-18187867)
 * same here!
 *  [marcguenther](https://wordpress.org/support/users/marcguenther/)
 * (@marcguenther)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/plugin-coding-error-for-conditional-placeholder-not_all_day/#post-18282193)
 * Wow, thanks for reporting this. Had the same problem, fixed it manually according
   to your description, and disabled auto-updates for this plugin.
 * Hope this get’s fixed soon. A single `!` surely cannot take 3 months to get changed,
   no?
 *  [marcguenther](https://wordpress.org/support/users/marcguenther/)
 * (@marcguenther)
 * [1 year ago](https://wordpress.org/support/topic/plugin-coding-error-for-conditional-placeholder-not_all_day/#post-18463752)
 * It seems this plugin has been abandoned? Or why is a super simple problem like
   this still not fixed after half a year?
 *  [marcguenther](https://wordpress.org/support/users/marcguenther/)
 * (@marcguenther)
 * [1 year ago](https://wordpress.org/support/topic/plugin-coding-error-for-conditional-placeholder-not_all_day/#post-18464843)
 * Apparently is has been fixed in 6.6.4, but no one bothered to close this ticket
   here.
 * From the Release Notes: [https://wp-events-plugin.com/blog/2025/02/17/em-6-6-4-security-update-and-more/](https://wp-events-plugin.com/blog/2025/02/17/em-6-6-4-security-update-and-more/)
    - Fixed `not_all_day` conditional placeholder showing same result as `all_day`.

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

The topic ‘Plugin coding error for conditional placeholder {not_all_day}’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [marcguenther](https://wordpress.org/support/users/marcguenther/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/plugin-coding-error-for-conditional-placeholder-not_all_day/#post-18464843)
 * Status: resolved