Skip to content

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

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() );

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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