Forums Forums Search & Filter Pro search page title

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #49989

    Hi there

    I use your nice plugin version pro

    I have the problem that if I do a search the meta-tile of the page became the page title of the first result funded.

    I wish to write something like ”Search Results | Site Name”;

    I get your code

    add_filter(‘wp_title’,’search_form_title_it’);

    function search_form_title_it($title){

    global $searchandfilter;

    if ( $searchandfilter->active_sfid() == 766)
    {
    return ‘Risultati della ricerca | Site Name’;
    }
    else
    {
    return $title;
    }

    }

    add_filter(‘wp_title’,’search_form_title_en’);

    function search_form_title_en($title){

    global $searchandfilter;

    if ( $searchandfilter->active_sfid() == 775)
    {
    return ‘Search Results | Site Name’;
    }
    else
    {
    return $title;
    }

    }

    Anonymous
    #49990

    Regretfully that code is not working…

    Trevor
    #50012

    Sadly, that code does not always work 🙁 We are looking for a better way to do this, but it will not happen soon.

Viewing 3 posts - 1 through 3 (of 3 total)