powerbuoy / sleek-archive-meta
Hooks into the the_archive_title() and the_archive_description() functions to provide better search results texts, remove prefixes and more.
Installs: 1 951
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- powerbuoy/sleek-utils: ^1.0.0
README
Hooks into the the_archive_title()
and the_archive_description()
functions to provide better search results texts, remove prefixes and more.
Also adds a new Sleek\ArchiveMeta\the_archive_image()
(which, without ACF, only works for the user archive (using the avatar)).
If used together with Sleek\PostTypes
' settings pages the_archive_image()
returns the image used on the settings page.
Theme Support
N/A
Hooks
N/A
Functions
Sleek\ArchiveMeta\get_the_archive_image($size)
Returns potential archive images as <img>
.
Sleek\ArchiveMeta\get_the_archive_image_url(size)
Returns potential archive image URL.
Sleek\ArchiveMeta\the_archive_image(size)
Renders potential archive image.
Sleek\ArchiveMeta\the_archive_image_url(size)
Renders potential archive image URL.
Classes
N/A