Answers for "wordpress get archive title"

PHP
0

wordpress get archive title

$archive_title = get_the_archive_title()

// * Filters the archive title prefix.
// apply_filters( 'get_the_archive_title_prefix', $prefix );

// * Filters the archive title.
// apply_filters( 'get_the_archive_title', $title, $original_title, $prefix );
Posted by: Guest on December-04-2020
1

the_archive_title()

-the_archive_title():
you can just use this one function to do the work of is_Category() and is_Author() functions automatically.
It displays the archive title based on the queried object. so you dont need to put the if and else conditions
for each archive title. it will simply get the archive title from the url based on the user selection.
Posted by: Guest on February-13-2020

Browse Popular Code Answers by Language