WordPress.org

Support

Support » Plugins and Hacks » All in One SEO Pack » [Resolved] Incompatible with BuddyPress (1.7)

[Resolved] Incompatible with BuddyPress (1.7)

  • Hi,

    first of all thanks for your great plugin, I use it for three years now.

    Unfortunately, the latest version of All in One SEO Pack (2.02) doesn’t work properly with BuddyPress 1.7 – the page titles of members, groups and activity pages seem to be overwritten by AIO SEO Pack although I have disabled it on the particular pages.

    As a result, the page title is always like ‘Members | pagename.com’ although it should be like ‘Username – Members | pagename.com’ or ‘Groupname – Groups | pagename.com’ on certain pages.

    Any suggestions?

    Thanks!

    http://wordpress.org/plugins/all-in-one-seo-pack/

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

    @pbaylies

    Mqlte,

    The latest version of All in One SEO Pack isn’t 2.02; I suggest you try upgrading first. Also, the latest version of Buddypress isn’t 1.7 – it’s 1.8.1. I tried editing the Members page on my test site, I checked the option “Disable on this page/post” in the All in One SEO Pack metabox for this page, and clicked Update. When I view the page, the title shows up as “Members Directory” (and the blog name). See if that helps! Also it’s possible to further customize what All in One SEO Pack does output for the title using the aioseop_title filter.

    Thanks for your prompt answer.

    Of course, I have the latest versions of WordPress, BuddyPress and AIO SEO Pack, I apparently just wrote the wrong numbers from memory.

    The problems don’t occur if you are on one of the directories pages – they occure if you are on a single profile or group page.

    Examples,

    Deactivated AIO SEO Pack:

    URL: http://www.pagename.com/members/john-doe
    Page title: John Doe – Members Directory | pagename.com

    URL: http://www.pagename.com/groups/help-and-support
    Page title: Help and Support – Groups Directory | pagename.com

    Activated AIO SEO Pack: (wrong page titles)

    URL: http://www.pagename.com/members/john-doe
    Page title: Members Directory | pagename.com

    URL: http://www.pagename.com/groups/help-and-support
    Page title: Groups Directory | pagename.com

    I hope you get my point.

    Thank you!

    Plugin Contributor Peter Baylies

    @pbaylies

    Mqlte,

    We will be greatly improving this in the future, we do have better BuddyPress compatibility on our roadmap; in the meantime, see if this fixes your issue, you can add this code to the functions.php in your theme or to a plugin:

    add_filter( 'aioseop_title', 'mqlte_archive_titles' );
    function mqlte_archive_titles( $title ) {
        if ( is_post_type_archive() ) {
            $title = post_type_archive_title( '', false );
        }
        return $title;
    }

    Thanks again but unfortunately your code doesn’t solve the problem.

    Plugin Contributor Peter Baylies

    @pbaylies

    That’s a bug in BuddyPress, then; try this instead:

    add_filter( 'aioseop_title', 'mqlte_archive_titles' );
    function mqlte_archive_titles( $title ) {
        if ( is_archive() && !is_date() && !is_author() && !is_tax() && !is_tag() && !is_category() ) {
            $title = post_type_archive_title( '', false );
        }
        return $title;
    }

    Thanks for your effort, I could solve the problem with a little change in your last code:

    add_filter( ‘aioseop_title’, ‘mqlte_archive_titles’ );
    function mqlte_archive_titles( $title ) {
    if ( is_page(‘x’) && !is_date() && !is_author() && !is_tax() && !is_tag() && !is_category() ) {
    $title = post_type_archive_title( ”, false );
    }
    return $title;
    }

    Just replace “x” with the page number of your groups and\or members directory. This works fine for me.

    Hi Peter Baylies,

    I am trying to have your plug work with BP for profile, forum, groups

    can you help pleas or can you fix it for $$

    Regards.
    Matrixicutoo

    Plugin Contributor Peter Baylies

    @pbaylies

    Hi Matrixicutoo,

    What issues are you running into, exactly, and did any of the fixes in the above thread help?

    Hi,

    The issues are the profiles all have the same tittles and groups also.

    I have try but not working..

    Plugin Contributor Peter Baylies

    @pbaylies

    Hi Matrixicutoo,

    Add this code to the functions.php in your theme or to a plugin and let me know if it works for you:

    add_filter( 'aioseop_title', 'matrixicutoo_buddypress_title' );
    function matrixicutoo_buddypress_title( $title ) {
    	if ( function_exists( 'is_buddypress' ) && is_buddypress() && function_exists( 'bp_modify_page_title') ) {
    		$title = bp_modify_page_title( $title );
    	}
    	return $title;
    }

    were exactly in fonction.php I put that code?

    Wy you guys don’t fix it in the SEO plug coding?

    How can I create a plugin with this in it?

    Regsrds,

    Plugin Contributor Peter Baylies

    @pbaylies

    Hi Matrixicutoo,

    Near the bottom of your functions.php file should work, but make sure you have it after an opening <?php tag, and not after a closing ?> tag. You might also want to make sure you can undo the change in the event that the code ends up in the wrong place. Thank you for testing this, if this fix works for you, I expect that it will make it into the next release of the plugin. If you’d rather create a plugin with this in it, I would recommend the plugin Pluginception for creating plugins; or, there are directions on this in the WordPress Codex.

    Hi,

    Thanks !!

    Ok It work nice now I put it just after the <?php tag in functions.php of the team.

    The only issue is the <link rel=”canonical” href=”http://mysite.com/members/”

    The canonical don’t change like the title can you fix this pleas?

    Regards,

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Resolved] Incompatible with BuddyPress (1.7)’ is closed to new replies.
Skip to toolbar