I am using a simple query to show 6 of my blog posts.
The blog post title, author and date are showing BUT, I have one post that have a query of one of my custom post in its content, this post when called with the query to show blog post doesn’t appear correctly, instead of showing its title, author and date it shows the information of the page that contains the blog query.
Does anyone know why this is happening?
It is only happening if the single post content contains an other query.
This is my blog query args
$args = array(
‘post_type’ => ‘post’,
‘post_status’ => ‘publish’,
‘paged’ => $paged,
‘order’ => $order,
‘orderby’ => $orderby,
‘posts_per_page’ => $to_show,
‘post__not_in’ => array( get_the_ID() ),
$blog_query = new WP_Query($args);
if ($blog_query->have_posts()) : while ($blog_query->have_posts()) : $blog_query->the_post();