[wp-trac] [WordPress Trac] #58952: Add search to get_the_archive_title()

WordPress Trac noreply at wordpress.org
Tue Aug 1 09:40:07 UTC 2023


#58952: Add search to get_the_archive_title()
-------------------------+-----------------------------
 Reporter:  huubl        |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Add search archive title to get_the_archive_title():

 {{{#!php
 <?php
 if ( is_search()) {
         $title = __( 'Search results' );
 } elseif( is_category() ) { ...
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58952>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list