Support

Account

Home Forums Backend Issues (wp-admin) Relationship set to one post type showing all post types in selection. Reply To: Relationship set to one post type showing all post types in selection.

  • Yep, turned out to be a custom function that was filtering search sitewide…

    
    // search post types
    function filter_search($query) {
        if ($query->is_search) {
    		$query->set('post_type', array('post', 'project', 'team', 'perspective'));
        };
        return $query;
    };
    add_filter('pre_get_posts', 'filter_search');

    Everything’s in order when I comment it out. Cheers!