Forum Replies Created
-
AuthorPosts
-
FocuxTheme Support
KeymasterIt’s my pleasure and glad to hear that 🙂
You must have valid license to access this content.FocuxTheme Support
KeymasterIt’s my pleasure!
FocuxTheme Support
KeymasterOK, I will also change it to 46 in the new version.
Thanks
FocuxTheme Support
KeymasterFixed.
The solution:
I changed
add_filter('pre_get_posts','van_searchFilter');to
if(!is_admin()){ add_filter('pre_get_posts','van_searchFilter'); }This code is in the includes/theme-functions.php
Thanks
You must have valid license to access this content.You must have valid license to access this content.You must have valid license to access this content.You must have valid license to access this content.November 30, 2014 at 10:55 pm in reply to: Search for featured image for post shows no results #6878FocuxTheme Support
KeymasterHi
Just put the following code into theme-functions.php file. Or you can post your wordpress login details with private reply, I will help you to do that.
add_filter( 'posts_search', 'guid_search_so_14940004', 10, 2 ); function guid_search_so_14940004( $search, $a_wp_query ) { global $wpdb, $pagenow; // Only Admin side && Only Media Library page if ( !is_admin() && 'upload.php' != $pagenow ) return $search; // Original search string: // AND (((wp_posts.post_title LIKE '%search-string%') OR (wp_posts.post_content LIKE '%search-string%'))) $search = str_replace( 'AND ((', 'AND (((' . $wpdb->prefix . 'posts.guid LIKE \'%' . $_GET['s'] . '%\') OR ', $search ); return $search; }Thanks
-
AuthorPosts
