the_post

Definition:
function the_post() {}

Iterate the post index in the loop.

Defined actions

  • loop_start
    do_action_ref_array('loop_start', array(&$this));

Source code

	function the_post() {

		global $post;

		$this->in_the_loop = true;



		if ( $this->current_post == -1 ) // loop has just started

			do_action_ref_array('loop_start', array(&$this));



		$post = $this->next_post();

		setup_postdata($post);

	}

3033

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: