Check to see we have posts before calling the_post().
git-svn-id: http://svn.automattic.com/wordpress/trunk@14830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
437a09348b
commit
78ba3b94b1
|
@ -21,6 +21,7 @@
|
|||
* We reset this later so we can run the loop
|
||||
* properly with a call to rewind_posts().
|
||||
*/
|
||||
if ( have_posts() )
|
||||
the_post();
|
||||
?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue