8000 Title shortcode - Use "search title" when in a `is_search()` condition · Issue #228 · Pilot-in/PiloPress · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Title shortcode - Use "search title" when in a is_search() condition #228
Open
@DamChtlv

Description

@DamChtlv

In this code:

// Front
if ( is_singula 5367 r() ) {

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

      0