get_the_a_z_letters( array|string|WP_Query|A_Z_Listing $query = null, bool|string $target = false, bool $styling = false, bool $use_cache = true )

Returns the A-Z Letter list


Description


Parameters

$query

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

Default value: null

$target

(bool|string) (Optional) URL of the page to send the browser when a letter is clicked.

Default value: false

$styling

(bool) (Optional) unused.

Default value: false

$use_cache

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

Default value: true


Return

(string) HTML ready for echoing containing the list of A-Z letters with anchor links to the A-Z Index page.


Source

File: functions/helpers.php

function get_the_a_z_letters( $query = null, $target = false, $styling = false ) {
	return a_z_listing_cache( $query )->get_the_letters( $target, $styling );
}

Changelog

Changelog
VersionDescription
0.8.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.