Widgets- There are no upcoming events at this time

Home Forums Calendar Products Events Calendar PRO Widgets- There are no upcoming events at this time

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #59220
    mindfeck
    Participant

    I 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?

    #59696
    Barry
    Member

    I’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)?

    #59699
    mindfeck
    Participant

    The 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.

    #59799
    Barry
    Member

    We’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!

    #60002
    mindfeck
    Participant

    This reply is private.

    #61742
    Rob
    Member

    Hey 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.

    #61810
    Barry
    Member

    Hi 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?

    #61849
    mindfeck
    Participant

    That’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.

    #61988
    Barry
    Member

    OK, 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 🙂

    #61989
    mindfeck
    Participant

    Awesome, thanks! It also fixed what I figured was a related issue on the venue pages.

    #62003
    Barry
    Member

    Yes, it would relate to/affect all event-related custom post types. Glad it helped!

    #980144
    Support Droid
    Keymaster

    This 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.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Widgets- There are no upcoming events at this time’ is closed to new replies.