A_Z_Listing::the_item()

Advance the Post loop within the Letter Loop onto the next post


Description


Source

File: classes/class-a-z-listing.php

	public function the_item() {
		global $post;
		$this->current_item = $this->current_letter_items[ $this->current_item_index ];
		$item_object = $this->current_item['item'];
		if ( $item_object instanceof WP_Post ) {
			$post = $item_object;
			setup_postdata( $post );
		}

		$this->current_item_index += 1;
	}

Changelog

Changelog
VersionDescription
1.0.0Introduced.

More Information

You are currently logged out. To view tickets you must first login.

I have read and understood the Terms of Service



User Contributed Notes

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.