Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter giusers

    (@giusers)

    solution

    function modify_product_search( $query ) {
    	if ( !is_admin() && $query->is_search == 1 && isset( $query->query_vars[ 'post_type' ] ) && $query->query_vars[ 'post_type' ] != 'al_product' ) {
    		add_filter( 'posts_search', 'exclude_products_search', 10, 2 );
    	} else if ( !is_admin() && $query->is_search == 1 && !isset( $query->query_vars[ 'post_type' ] ) ) {
    		add_filter( 'posts_search', 'exclude_products_search', 10, 2 );
    	}
    }

    Plugin Author ndre

    (@ndre)

    Thank you for reporting the problem and fix proposal. It will be fixed in next update.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: strpos() expects parameter 1 to be string, array given in’ is closed to new replies.