WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
title bug with bbpress (7 posts)

  1. Ninos
    Member
    Posted 2 years ago #

    The title tags %%sitename%% %%title%% and so on are not working on the page SITE/forums/ or SITE/topics/ (forums & topics page) I'm using bbpress 2.0.2. On the reply and thread page the title is working..

    I think it's a bug of this plugin?

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. kuching
    Member
    Posted 2 years ago #

    I have the same problem

  3. kuching
    Member
    Posted 2 years ago #

    found solution

    add this in the functions.php

    remove_action( 'wp_title', 'bbp_title' );

    this will disable the default breadcrumb-like structure in the titles of bbPress pages (forum, topics, etc.)

    you'll need to setup WordPress SEO accordingly

  4. Ninos
    Member
    Posted 2 years ago #

    thanks, will try it in the evening :)

  5. Ninos
    Member
    Posted 2 years ago #

    hmm, not working :/
    Is it a bug in bbpress oder in wp seo? Maybe someone can open a ticket..

  6. kuching
    Member
    Posted 2 years ago #

    no it's not a bbpress bug and neither yoast's

    bbpress by default modifies the title in the header when the user is viewing a topic, a reply, etc. - and I can see their point for doing so

    bbpress does so by filtering wordpress wp_title() with the action bbp_title()

    this conflicts with Yoast SEO, since this plugin filters wp_title() as well (haven't looked at Yoast code but it's my assumption that does so)

    by removing the bbp_title() action that filters wp_title Yoast SEO can do its job again

    eventually Yoast might include in his plugin an action do detect presence of bbpress and prompt the user to remove bbpress titles and use SEO titles instead

    the solution proposed in the previous post worked for me with bbpress 2.x and wp 3.3 up to 3.4 beta

    make sure you have added it correctly in the functions.php file of the theme you are using - do not hack Yoast , bbpress or wordpress core files for this

  7. kuching
    Member
    Posted 2 years ago #

    oh... I forgot

    to make it work you also need to go through Yoast SEO settings for forum, topic , reply post types and topic-tag taxonomy

    you need to set your own SEO titles like you did for normal posts and pages and any other taxonomy or post type in your setup

    if you already did, try to save settings again

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic