I’m having the same problem post are not showing up in the post section or on the author.php page I added
add_filter( 'pre_get_posts', 'custom_post_types_get_posts' );
function custom_post_types_get_posts( $query ) {
if ( is_home() && $query->is_main_query()||is_feed() ){
$query->set( 'post_type', array( 'post', 'videos' ) );
}
return $query;
}
To themes function.php Pressgrid theme as suggested I can see on single post but not on all post
This theme uses post formats video, image, quote, status and post_types ‘post’ ‘slider’ ‘any’ don’t know if this helps but theme loops like:
<div class="mansonry-container">
<!-- Start Featured Article --><?php
$isBlog = true;
$query = 'post_type=post';
if (have_posts ()) the_post();
rewind_posts();
get_template_part('loop'); ?>
<!-- End Featured Article -->
</div>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Thanks