encountering this as well. noticed my Option fields disappeared only when i added a custom post type to the general archive.
function archive_include_cpt( $query ) {
if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {
$query->set( 'post_type', array( 'project', 'post' ));
return $query;
}
}
add_filter( 'pre_get_posts', 'archive_include_cpt' );
(via)
maybe this is helpful? bummer this thread is marked as solved. perhaps i’ll start another?
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!