Skip to content

Title shortcode - Use "search title" when in a is_search() condition #228

@DamChtlv

Description

@DamChtlv

In this code:

// Front
if ( is_singular() ) {

Should take example of the wp_get_document_title() function code for this shortcode:

Have something like:

if ( is_search() ) {
    $title = sprintf( __( 'Search Results for “%s”' ), get_search_query() );

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions