Wordpress - WordPress Query and Database
Given the following code, what will be the output if there are 3 posts in category 10?
$query = new WP_Query(['cat' => 10]);
if ($query->have_posts()) {
while ($query->have_posts()) {
$query->the_post();
echo get_the_title() . ', ';
}
} else {
echo 'No posts found';
}
wp_reset_postdata();