• Resolved javiersr

    (@javiersr)


    When this plugin is activated my search page menues items are reapeated 20 times each one. Do you know what can be happening? In the rest of the site the menu appears fine so I’m getting crazy trying to find the problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter javiersr

    (@javiersr)

    OK, I’ve found the problem is the line 408, search_filters_join($join, $query) in class-search.php. It seems that querry is getting my theme crazy. So if anyone could help me it would be great, for now I’ll try to fix it.

    Thread Starter javiersr

    (@javiersr)

    For the moment I’ve decided to disable sku search and everything works fine. I’ll add sku in description and it’ll work but I cannot imagine what is happening with that query change to edit my template :/

    PD: Sorry for the multipost just wanted to inform about my own steps.

    Plugin Author Damian Góra

    (@damian-gora)

    Hello

    You’re right. The method search_filters_join in a class-search.php is incomplete. There isn’t bypass for orher posts types like nav_menu_item. I will fix it in the next release.

    Temporary solution:
    You can add following code inside the method search_filters_join after global $wpdb;

    
    if ( $query->query_vars[ 'post_type' ] !== 'product' ) {
        return $join;
    }
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Menu items repeated x20 in search page’ is closed to new replies.