post_type_archive_title


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

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

Description

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.

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