Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

post_type_archive_title()

3 tags 1 category

post_type_archive_title() — Displays or retrieves title for a post type archive. This is optimized for archive.php and archive-{$post_type}.php template files for displaying the title of the post type.

Inputs: $prefix (string): Optional. What to display before the title. $display (bool): Optional. Whether to display or retrieve title. Default true.

Returns string|null|void: Title when retrieving, null on failure. Nothing when displaying.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…