Watercleave
0
Q:

php if have post

NOTE: The functions, have_posts(); and the_post(); are tied to the default automatic query that wordpress makes
on its on using the current URL.
1
<?php 
if ( have_posts() ) {
	while ( have_posts() ) {
		the_post(); 
		//
		// Post Content here
		//
	} // end while
} // end if
?>
0

New to Communities?

Join the community