WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Problem with TribeEventsQuery

[Resolved] Problem with TribeEventsQuery

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rob La Gatta

    @roblagatta

    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.

    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.

    Plugin Author Rob La Gatta

    @roblagatta

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Problem with TribeEventsQuery’ is closed to new replies.