Forums › Forums › Search & Filter Pro › "AND" relationship between the different form field
- This topic has 15 replies, 2 voices, and was last updated 9 years, 8 months ago by Anonymous.
-
Ross Moderator(Private) February 18, 2015 at 12:02 pm #12100
Did you try to remove it yet to see the effects?
Anonymous(Private) February 18, 2015 at 2:10 pm #12108Well,
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(Private) February 21, 2015 at 9:24 pm #12230Hi 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(Private) February 26, 2015 at 12:02 am #12428Hi 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
-
AuthorPosts