wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



the_archive_title › WordPress Function

Desde4.1.0
Obsoleton/a
the_archive_title ( $before = '', $after = '' )
Parâmetros: (2)
  • (string) $before Optional. Content to prepend to the title. Default empty.
    Required: No
    Padrão: (empty)
  • (string) $after Optional. Content to append to the title. Default empty.
    Required: No
    Padrão: (empty)
Ver:
Definido em:
Codex:

Displays the archive title based on the queried object.



Fonte

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

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