have post wp code example
Example: have post wordpress
if ( have_posts() ) :
while ( have_posts() ) : the_post();
// Your loop code
endwhile;
else :
_e( 'Sorry, no posts were found.', 'textdomain' );
endif;
if ( have_posts() ) :
while ( have_posts() ) : the_post();
// Your loop code
endwhile;
else :
_e( 'Sorry, no posts were found.', 'textdomain' );
endif;