• Resolved netzmaedchen

    (@netzmaedchen)


    Hi everyone. I have a weird scenario, maybe someone can help.

    I have a site where I list the events from the events calendar in a grid and with facets from gridbuilder WP. All worked fine, until I migrated the events to the new database format. After that, the TEXT SEARCH facet in Gridbuilder did not work any more. I had a long exchange with their support who tried to help and we got to a partial solution (text search worked fine after this) but the ordering of the events was broken after that.

    This is the code, I was given by support:

    add_filter(
    'wp_grid_builder/grid/query_args',
    function( $query_args ) {

    $query_args['tec_events_ignore'] = true;
    $query_args['tribe_suppress_query_filters'] = true;
    return $query_args;

    }
    );

    And in the Gridbuilder settings, I was ordering by (numeric) _EventStartDate . THAT Order is broken, when I use the code above. If I don’t, the order is fine but the Text search does not work any more.

    So it seems this is a fatal combination of Gridbuilder WP and the events calendar.

    Any info/insight/tipps on this?

    Thank so much

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Darian

    (@d0153)

    Hi @netzmaedchen

    Thanks for reaching out. Let me help you with this one.

    I don’t have a Gridbuilder that I can test, but you could try adding the query args below $query_args['tribe_suppress_query_filters'] = true;

    $query_args['orderby'] = [
    'tec_event_start_date' => 'ASC',
    'post_date' => 'DESC',
    ];

    As always, please test it first on a staging version of your live site before applying to your live site.

    Let me know how it goes.

    Thread Starter netzmaedchen

    (@netzmaedchen)

    Thank you very much! It didn’t help. But right now, I’m convinced it is more of a gridbuilder Problem as the regular WordPress search ( /?s=searchme ) works fine, only the text search of gridbuilder doesn’t. But as I can’t really get any help, I will remove the text search and get on with my life. Thanks for your effort and time!

    Thread Starter netzmaedchen

    (@netzmaedchen)

    I will close this…

    Plugin Support Darian

    (@d0153)

    Hi @netzmaedchen

    Thanks for your message. If you have any further questions or concerns, please don’t hesitate to get in touch.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.