Home › Forums › Calendar Products › Events Calendar PRO › Widgets- There are no upcoming events at this time
- This topic has 11 replies, 4 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
August 6, 2013 at 8:08 pm #59220
mindfeck
ParticipantI have a theme conflict with Swagger Magazine, due to post types. It was not an issue with other calendar plugins. What do I need to change so the widget displays upcoming events?
August 9, 2013 at 7:54 am #59696Barry
MemberI’m afraid I’m not familiar with Swagger and it looks like it is not freely available. Can you give any more details (you mentioned it was due to post types)?
August 9, 2013 at 8:03 am #59699mindfeck
ParticipantThe theme uses custom post types for reviews. I’m guessing that the widgets or pages block other post-types, like tribe_events. The widgets always say that there are no upcoming events, and the venues pages also show no upcoming events. I could give you an admin login.
August 9, 2013 at 4:35 pm #59799Barry
MemberWe’re happy to log in and take a look in some cases but really only if all else fails, since we don’t want to do anything that would disrupt your site.
Can you share the theme instead – by making it available as a .zip for download? You could for instance share a Droplr or Dropbox link, or else upload it to your WP site and provide the link (as a private reply if you prefer) that way.
Thanks!
August 12, 2013 at 11:28 am #60002mindfeck
ParticipantThis reply is private.
August 20, 2013 at 9:51 am #61742Rob
MemberHey mindfeck! Thanks for the follow-up here, and I’m sorry we failed to see your last comment. I’ve made sure Barry is aware of it so he can reply in as timely a fashion as possible. Thanks for your patience on it so far.
August 20, 2013 at 10:55 am #61810Barry
MemberHi mindfeck – the upcoming events widget does seem to work in some places and not others. For instance, if I am using the default page template (from Events > Settings > Display) and add the Event List widget to the default sidebar it is correctly populated when I view the main calendar page or indeed any other regular page.
For some reason though it doesn’t work on the front page. At this stage can I check if that is consistent with your experience and if you have noticed any other similar patterns you think I need to be aware of?
August 20, 2013 at 11:16 am #61849mindfeck
ParticipantThat’s correct. It doesn’t work on the front page, single posts, or buddypress pages. It only works on default page, I think since it doesn’t use post types.
August 20, 2013 at 2:03 pm #61988Barry
MemberOK, so take a look at functions/custom.php around lines 58-60: you should see this code which seems to be causing the problem. Also, as you can see from the author’s comments, you should be able to modify that and add exceptions for custom post types such as events.
I can’t actually make that work the way the author seems to have intended – the problem is that it seems to be assuming only one query will be used to build up the page (which would be quite unusual) and only the first query is tested to see which post type it relates to – whereas actually many queries will run and this affects all of them. Hopefully that makes some kind of sense 😉
What you could try though is finding this line from the same file:
function query_post_type($query) {Just after it, insert this line:
if (isset($query->tribe_is_event_query) && $query->tribe_is_event_query) return $query;That should hopefully fix this 🙂
August 20, 2013 at 2:12 pm #61989mindfeck
ParticipantAwesome, thanks! It also fixed what I figured was a related issue on the venue pages.
August 20, 2013 at 2:59 pm #62003Barry
MemberYes, it would relate to/affect all event-related custom post types. Glad it helped!
July 7, 2015 at 6:27 am #980144Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Widgets- There are no upcoming events at this time’ is closed to new replies.
