Title: conditional not working
Last modified: August 22, 2016

---

# conditional not working

 *  Resolved [nowton](https://wordpress.org/support/users/nowton/)
 * (@nowton)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/conditional-not-working-2/)
 * [http://www.stadspodium-rotterdam.nl/?post_type=tribe_events](http://www.stadspodium-rotterdam.nl/?post_type=tribe_events)
   in the sidebar we filter a widget with a conditonal tribe_is_upcoming() but this
   doesnt affect the display at all. I tried numerous other conditionals and combinations
   but have been unable to get this to work. This (and quite a few other) issues
   crept up after the last updates. Please advise, thanks.
 * [https://wordpress.org/plugins/the-events-calendar/](https://wordpress.org/plugins/the-events-calendar/)

Viewing 1 replies (of 1 total)

 *  [Brook](https://wordpress.org/support/users/brook-tribe/)
 * (@brook-tribe)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/conditional-not-working-2/#post-5564284)
 * Howdy Nowton,
 * that function is for the global wp_query object. Considering you are using it
   in a widget, perhaps that is why its behavior is unexpected. It is telling you
   if the current page’s global query is upcoming or not. That might not be what
   you wish to know.
 * I am sorry you have had difficulties this last release. It has actually been 
   pretty smooth for the community. We did have one unfortunate bug slip past that
   we are going to fix shortly in 3.9.1, but aside from that there has been very
   little in the way reports of problems. I wish your experience was the same.
 * Let us know what you are trying to do. Maybe a member of the community can recommend
   a function or method more suites to the task, assuming you are not trying to 
   check the main query if it is upcoming. Cheers!
 * – Brook

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Brook](https://wordpress.org/support/users/brook-tribe/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/conditional-not-working-2/#post-5564284)
 * Status: resolved