get_the_a_z_listing( array|string|WP_Query|A_Z_Listing $query = null, bool $use_cache = true )

Return the index of posts ordered and segmented alphabetically.


Description


Parameters

$query

(array|string|WP_Query|A_Z_Listing) (Optional) a valid WordPress query or an A_Z_Listing instance

Default value: null

$use_cache

(bool) (Optional) use the plugin's in-built query cache

Default value: true


Return

(string) The listing html content ready for echoing to the page.


Source

File: partials/a-z-listing.php

function get_the_a_z_listing( $query = null ) {
	return a_z_listing_cache( $query )->get_the_listing();
}

Changelog

Changelog
Version Description
0.8.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.