What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-17 13:59:01
wordpress get 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 archiv... Add solution
Best helpers
Mushi.f
+5
Ivan T.
+5
Bianco
+5
Nikola
+5
Graffito
+5
Mari Yoongi
+5
Tyr
+5
Christophrrb
+5
Vary
+5
Del Findley
+5
Nick Vaccaro
+5
Ryan Friend
+5
Millemila
+5
Soumee
+5
Gftern
+5
Davesmiths
+5
Vocaro
+5
Vbence
+5