Forums Forums Search & Filter Pro "AND" relationship between the different form field

Viewing 6 posts - 11 through 16 (of 16 total)
  • Ross Moderator
    #12100

    Did you try to remove it yet to see the effects?

    Anonymous
    #12108

    Well,

    I still have all the ads (filter on the meta doesn’t works).
    But I do not have any more a drop down menu used to order manually the results.

    More over I have an additional question :
    In the “display results” tab under template options do I have to tick “Use a custom template for results?” to make sure that the php file in “Enter the filename of the custom template:” is used ?

    When I tick this box with search.php the results are without any style.
    If I don’t the results are shown correctly. But The default php page must be search.php so I would have the same design in both case ?

    Thanks.

    Anonymous
    #12208
    This reply has been marked as private.
    Anonymous
    #12230

    Hi Ross,

    I found the following function, do you think it is helpful ?

    // search on custom fields
    function custom_search_groupby( $groupby ) {
    global $wpdb, $wp_query;

    if ( is_search() && isset( $_GET[‘s’] ) ) {
    $groupby = “$wpdb->posts.ID”;

    remove_filter( ‘posts_groupby’, ‘custom_search_groupby’ );
    }

    return $groupby;
    }

    Ross Moderator
    #12428

    Hi Didier

    If you cannot get this method to work then there is a much easier alternative, but you must customise your results template to look like how you want.

    Follow the instructions here:

    http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/#docs-new-ajax

    Then you will see that it is working, but the styling integration must be done by yourself.

    Thanks

    Anonymous
    #12624

    Hi Ross,

    Thank you for your help.
    We have followed these guidelines and after quite some work it works !

    Thanks again.

Viewing 6 posts - 11 through 16 (of 16 total)