Today we are going to learn how to use loop in WordPress. Well, loop is a very common term in WordPress. Because we need to use this loop to load the WordPress posts and comments.
Here goes an example of loop structure in WordPress.
if(have_posts(): while(have_posts()): the_post(); echo "Your post contain goes in here"; endwhile; else: echo "You have no post to display"; endif;
Enjoy!
Was this information useful? What other tips would you like to read about in the future? Share your comments, feedback and experiences with us by commenting below!