Forum Replies Created

Viewing 10 posts - 3,561 through 3,570 (of 6,341 total)
  • Author
    Posts
  • in reply to: Search for featured image for post shows no results #6895

    It’s my pleasure and glad to hear that 🙂

    in reply to: Portfolio Script #6894
    You must have valid license to access this content.
    in reply to: Visual Composer License Key #6893

    It’s my pleasure!

    in reply to: Menu issues #6890

    OK, I will also change it to 46 in the new version.

    Thanks

    in reply to: Search for featured image for post shows no results #6889

    Fixed.

    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

    in reply to: Portfolio Script #6888
    You must have valid license to access this content.
    in reply to: Problem in portfolio on click #6887
    You must have valid license to access this content.
    in reply to: Portfolio Script #6882
    You must have valid license to access this content.
    in reply to: Portfolio Script #6880
    You must have valid license to access this content.
    in reply to: Search for featured image for post shows no results #6878

    Hi

    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

Viewing 10 posts - 3,561 through 3,570 (of 6,341 total)