WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
[resolved] Incompatible with BuddyPress (1.7) (7 posts)

  1. Mqlte
    Member
    Posted 5 months ago #

    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/

  2. Peter Baylies
    Member
    Plugin Author

    Posted 5 months ago #

    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.

  3. Mqlte
    Member
    Posted 5 months ago #

    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!

  4. Peter Baylies
    Member
    Plugin Author

    Posted 5 months ago #

    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;
    }
  5. Mqlte
    Member
    Posted 5 months ago #

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

  6. Peter Baylies
    Member
    Plugin Author

    Posted 5 months ago #

    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;
    }
  7. Mqlte
    Member
    Posted 5 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.