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.

v3.5.1 2024-03-07 19:02 UTC

This package is auto-updated.

Last update: 2024-10-07 20:07:25 UTC


README

Packagist GitHub license GitHub issues GitHub forks GitHub stars

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