wordpress get archive title

Solutions on MaxInterview for wordpress get archive title by the best coders in the world

showing results for - "wordpress get archive title"
Cain
18 Mar 2018
1$archive_title = get_the_archive_title()
2
3// * Filters the archive title prefix.
4// apply_filters( 'get_the_archive_title_prefix', $prefix );
5
6// * Filters the archive title.
7// apply_filters( 'get_the_archive_title', $title, $original_title, $prefix );
8
Mariangel
20 Mar 2018
1-the_archive_title():
2you can just use this one function to do the work of is_Category() and is_Author() functions automatically.
3It displays the archive title based on the queried object. so you dont need to put the if and else conditions
4for each archive title. it will simply get the archive title from the url based on the user selection.