How to get distinct search results in WORDPRESS February 17, 2016 How to get distinct search results in WORDPRESS OR (Solution)Wordpress Search Result displayed multiple times. add the following function into your function.php of your theme function search_distinct (){ global $wp_query ; if (!empty($wp_query->query_vars['s'])) { return "DISTINCT" ; } return '' ;}add_filter ('posts_distinct', 'search_distinct') ; Share Get link Facebook X Pinterest Email Other Apps Share Get link Facebook X Pinterest Email Other Apps Comments Matthew28 March 2021 at 12:53How to get distinct search results in WORDPRESS Is Very Helpful. Thanks for such InformationLooking for WordPress Support Visit :WordPress SupportWordPress Technical Support WordPress Support Phone NumberReplyDeleteRepliesReplyAnonymous29 May 2021 at 14:01Superb InformationWP SupportReplyDeleteRepliesReplyAlen Brown21 February 2022 at 05:24This comment has been removed by the author.ReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
How to get distinct search results in WORDPRESS Is Very Helpful. Thanks for such Information
ReplyDeleteLooking for WordPress Support Visit :
WordPress Support
WordPress Technical Support
WordPress Support Phone Number
Superb Information
ReplyDeleteWP Support
This comment has been removed by the author.
ReplyDelete