Create a gist now

Instantly share code, notes, and snippets.

Embed
Wordpress Blog page Content Dynamic with while loop
<?php
if(have_posts()):
while(have_posts()): the_post();
?>
<div class="blog_left_single_item">
</div><!-- blog_left_single_item -->
<?php endwhile;?>
<?php
else:
get_template_part('template-parts/post/content', 'none');
endif;
wp_reset_postdata();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment