I just started learning PHP. I watched a tutorial about building a theme in WordPress using PHP. I want to ask about the term "wrapper", as I know that a wrapper for PHP code is <?php ?>. First please look at this code:
<?php
$lastBlog = new WP_Query('type=post&posts_per_page=1');
if( $lastBlog->have_posts() ):
while( $lastBlog->have_posts() ): $lastBlog->the_post(); ?>
<?php get_template_part('content', get_post_format()); ?>
<?php endwhile;
endif;
wp_reset_postdata();
?>
and this
<?php
$lastBlog = new WP_Query('type=post&posts_per_page=1');
if( $lastBlog->have_posts() ):
while( $lastBlog->have_posts() ): $lastBlog->the_post();
get_template_part('content', get_post_format());
endwhile;
endif;
wp_reset_postdata();
?>
There is a little difference in the way the wrappers used. I'm confused, which is better? Both are running the same way. Sorry if this question looks ridiculous.
I have searched for this topic, and I didn't answer to my question. Is it correct to say "wrapper" instead of "limiter"?