A_Z_Listing::have_items()

Used by theme templates. Returns true when we still have items/posts within the current letter.


Description

To advance the letter use A_Z_Listing::the_letter() To advance the item/post use A_Z_Listing::the_item()


Return

(bool) True if there are posts left to iterate within the current letter, otherwise false.


Source

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

	public function have_items() {
		return ( is_array( $this->current_letter_items ) && count( $this->current_letter_items ) > $this->current_item_index );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.

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