Support

Account

Home Forums General Issues Relationship no preload, only load on search Reply To: Relationship no preload, only load on search

  • Yeah, this actually was a good idea.

    That’s the code I used and even though it still searches, but the search itself is extremely quick.

    if(!isset($args['s'])) {
    	$args['posts_per_page'] = 1;
        $args['post_type'] = 'asdkjahdiuy';
    }
    
    return $args;