Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Brian

    (@brianjessee)

    Hi,

    Thanks for trying our out plugin.

    I can try to help here.

    Are you able to provide the coding you used for this?

    It is hard to tell what is going on without seeing it ourselves.

    Thanks

    Thread Starter Carl Gordon

    (@two-point-zero)

    I first used WP Extend Search plugin and when that didn’t work I used the following code in my functions.php

    function filter_search($query) {
        if ($query->is_search) {
        $query->set('post_type', array('post', 'page', 'tribe_events'));
        };
        return $query;
    };
    add_filter('pre_get_posts', 'filter_search');

    Thread Starter Carl Gordon

    (@two-point-zero)

    I’ve just tried it with a different installation of WordPress and it looks to be working. Now the hunt is on to see what’s in my theme or plugins that’s breaking the search

    Thanks

    Plugin Author Brian

    (@brianjessee)

    Hi,

    Thanks for that.

    I tried with that coding and was not able to reproduce the error.

    I did a search and it returned events, posts, and pages in the search.

    It sounds like it could be a conflict somewhere.

    Can you please follow our testing for conflicts guide:

    https://theeventscalendar.com/knowledgebase/testing-for-conflicts/

    And see if that can narrow down the cause of this.

    Thanks

    Thread Starter Carl Gordon

    (@two-point-zero)

    I found the error. There was a problem with my loop in the search.php. Sorry for the inconvenience – I should have checked the theme first. I will give your plugin a good rating 🙂

    Thread Starter Carl Gordon

    (@two-point-zero)

    Now, if I could only get it to return one result for reoccurring events.

    Plugin Author Brian

    (@brianjessee)

    Glad you found the conflict and thanks for the review!

    For recurring events if you add this to the query it might only return one instance of the series:

    $query->set('tribeHideRecurrence', TRUE};

    Thread Starter Carl Gordon

    (@two-point-zero)

    Unfortunately that didn’t work. Thanks for the help.

    You may find the info at this thread helpful: https://theeventscalendar.com/support/forums/topic/tribehiderecurrence1-in-list-view-link/

    While we do want to make sure we’re serving everyone as best we can, we’re also limited here at the dot-org forum to only providing support for bugs in the plugin codebase (as outlined in the forum guidelines that exist as a sticky post at the front page). It looks like the issue you’re reporting here unfortunately falls outside that scope. We want to do our best to get you sorted, though, and so here are some resources that might be helpful:

    • Themer’s Guide – provides an overview of how to customize the plugin’s front-end appearance.
    • Tutorials – useful tips and tricks for changing how the plugin looks and behaves.
    • Technical Docs – provides an overview of the classes and functions in each plugin

    Good luck, and thanks for using The Events Calendar!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WordPress search bug’ is closed to new replies.