WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
[resolved] Problem with TribeEventsQuery (4 posts)

  1. 4alexandr
    Member
    Posted 1 year ago #

    Sorry, for my English.

    On my site, TribeEventsQuery::setupQuery changed query with "post_type" = "nav_menu_item".
    As result, i lose my menu block.
    I found row in wp-content/plugins/the-events-calendar/lib/tribe-event-query.class.php

    ((isset($_GET['post_type']) && $_GET['post_type'] == TribeEvents::POSTTYPE) || (isset($_GET['tribe_events_cat']) && $_GET['tribe_events_cat'] != '')) ||

    and suggest, it's wrong.
    Can you fix this?

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Hi 4alexandr. Thanks for the note here.

    Can I see a link to your site, assuming the issue still persists? I'm not quite sure I understand but if I have the site to visit and review, it might help clear things up. I can try to get you an informed response from there.

  3. 4alexandr
    Member
    Posted 1 year ago #

    Sorry, but I fix this issue on my site.
    Problem in _GET variable. This is global variable and condition

    ((isset($_GET['post_type']) && $_GET['post_type'] == TribeEvents::POSTTYPE) || (isset($_GET['tribe_events_cat']) && $_GET['tribe_events_cat'] != '')) ||

    is "true" for all queries, when global $_GET['post_type'] == TribeEvents::POSTTYPE.

    After I comment this condition, site began to work normally.

  4. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Awesome to hear you got this sorted, 4alexandr! Thanks for confirming as much and providing the workaround here, too. This will be useful to others faced with your same problem down the road.

    Sounds like you're all set so I'm going to mark the thread RESOLVED. But if you need anything else in the future please just let us know. Thanks again for using The Events Calendar.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags