Support » Plugin: All in One SEO Pack » Paginated Custom Search Engine Results Causing Duplicate Title Tags

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Peter Baylies

    (@pbaylies)

    Grace,

    All in One SEO Pack currently does not add pagination to the Search results page title, it leaves that up to the theme. I’ll look into the feasibility of adding this as a future plugin feature.

    Hmm I wonder how I implement the fix, another thing to add to my long list of “How do I fix this?” Peter.

    Thanks for your help.

    Looking to do the same thing. Did you ever find a fix? I thought I could implement via the aioseop_title_page filter, but so far no luck.

    Plugin Contributor Peter Baylies

    (@pbaylies)

    timstl,

    Until there is a real option for this, try filtering on aioseop_title as that filters on all titles in All in One SEO Pack, and check for a search by using is_search().

    Ah. Thanks. That is the filter I was looking for.

    Here is what I added to functions.php, if anyone else needs to do this:

    function do_search_title($title)
    {
    	if (is_search())
    	{
    		global $paged;
    		if ($paged > 0) { $title .= ' - Part ' . $paged; }
    	}
    	return $title;
    }
    add_filter('aioseop_title','do_search_title');

    timstl, where did yo place the code?

    In my theme’s functions.php file. The location in the file shouldn’t matter, just drop it in the bottom.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Paginated Custom Search Engine Results Causing Duplicate Title Tags’ is closed to new replies.