wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



the_archive_title › WordPress Function

Depuis4.1.0
Dépréciéen/a
the_archive_title ( $before = '', $after = '' )
Paramètres: (2)
  • (string) $before Optional. Content to prepend to the title. Default empty.
    Requis: Non
    Défaut: (vide)
  • (string) $after Optional. Content to append to the title. Default empty.
    Requis: Non
    Défaut: (vide)
Voir:
Défini(e) dans:
Codex:

Displays the archive title based on the queried object.



Source

function the_archive_title( $before = '', $after = '' ) {
	$title = get_the_archive_title();

	if ( ! empty( $title ) ) {
		echo $before . $title . $after;
	}
}