wp default post loop or query
if(have_posts()){
while(have_posts()) :
the_post();
the_content();
endwhile;
wp_reset_postdata();
}else{
echo "no post found";
}
/*
the_post() function must declare before getting title or content for the whole post otherwise it won't work
*/
Comments
Post a Comment