post_type_archive_title


post_type_archive_title ( $prefix = '', $display = true )

Parameters:
  • (string) $prefix Optional. What to display before the title.
  • (bool) $display Optional, default is true. Whether to display or retrieve title.
Returns:
  • (string|void) Title when retrieving, null when displaying or failure.
Defined at:

Description

Display or retrieve 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.

Related Functions

get_the_archive_title, the_archive_title, is_post_type_archive, get_post_type_archive_link, get_post_type_archive_template

Top Google Results

User discussions

wpseek mobile