Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: All in One SEO bug


jeffry
Participant

@jeffry

I struggled with the same issue just now. You’ll have a rough time getting all in one SEO to working properly because it rewrites the title from wp_head rather than through the wp_title filter. I used Headspace2 instead. This one does use the wp_title filter which means you can jump in. When you have this one working (it comes with a filter to migrate from all-in-one-SEO) just create a file in mu-plugins and add something like

add_filter (‘wp_title’, ‘fix_my_titles’);

function fix_my_titles ($title)

{

global $bp;

if ($bp == ‘activity’ && $bp == ‘just-me’) {

$title = ‘My very own title for my activity page’;

}

return $title;

}

You can use any combination of current_component & current_action to override titles for

all components. Returning $title will make sure Headspace2 gets to do it’s thing for the rest

of the site.

hope this helps,

jeffry

Skip to toolbar