• Resolved gmcdonough

    (@gmcdonough)


    Perhaps someone can help.
    I am having trouble getting titles to display dynamically for my bbPress pages within a WordPress installation. The name of the blog appears, however no information regarding the forum page is displayed which is hurting my SEO.

    The reason for this appears to be the due to the bbPress template themePress,which skins bbPress to match the wordpress theme (changing the bbPress template fixes the problem). I’m assuming that these pages are calling the wp_title() function, rather than the bb_title() function, but i can’t seem to find where it is beign called from. ThemePress calls bb_title() inside the title tags however this is apparently not working.

    Does anyone know where this code lives or do i have to write a plugin to make wp_title() get the bbpress info?

    As always any help much appreatiated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter gmcdonough

    (@gmcdonough)

    The themepress pages call get_header() instead of bb_get_header(). Guess its plugin time unless someone can think of some clever way to call the wordpress header with the bbPress title tag. I was thinking of changing the header file of the wordpress theme to read something like this:

    if (this_is_a_bbpress_page)
    echo “<title>” . bb_title() . “</title>”;
    else
    echo “<title>” . wp_title() . “</title>”;

    Is there such a function or am I better off basing my conditional on the url or something. Like if the url is /forum/ then call bb_tittle(). Still kinda hazy. Any suggestions where to start?

    K

    (@koelle)

    You could check if bb_title() function exists

    <?php if ( function_exists("bb_title") ) : ?>
         <title><?php bb_title() ?></title>
    <?php else : ?>
         <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archiv <?php } ?> <?php wp_title(); ?></title>
    <?php endif; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bbPress page title using themepress’ is closed to new replies.