WPMUDEV SEO + Buddypress Group has no title

Hi

Not sure if it is my theme or wpmu dev seo

The blog title shows in the browser window title with a dash. the group title is not displayed when in a group.

http://tradr.com/groups/vehicles/cars/lamborghini/members/

Is this automated? Do I have to manually enter something somewhere? is it the theme that is wrong?

Any ideas, thanks

Johnny

  • johnnymestizo

    I seem to have a conditional statement for every page on my blog. Not sure if it supports buddypress groups though?

    <title>
    <?php //storefront_title(); ?>
    <?php if ( is_home() ) { ?><?php bloginfo('name'); ?> | <?php bloginfo('description'); ?><?php } ?>
    <?php if ( is_search() ) { ?><?php bloginfo('name'); ?> | Search Results<?php } ?>
    <?php if ( is_author() ) { ?><?php bloginfo('name'); ?> | Author Archives<?php } ?>
    <?php if ( is_single() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_page() ) { ?><?php bloginfo('name'); ?> | <?php wp_title(''); ?><?php } ?>
    <?php if ( is_category() ) { ?><?php bloginfo('name'); ?> | Archive | <?php single_cat_title(); ?><?php } ?>
    <?php if ( is_month() ) { ?><?php bloginfo('name'); ?> | Archive | <?php the_time('F'); ?><?php } ?>
    <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?> | Tag Archive | <?php single_tag_title("", true); } } ?>
    </title>

  • Philip John

    Firstly you'd benefit from combining all that into one PHP block. Multiple PHP blocks (<?php .. ?>:wink:.

    It looks like you just need an extra else to provide a fallback, like so;

    <title>
    <?php
    //storefront_title();
    if ( is_home() ) { ?><?php bloginfo('name'); ?> | <?php bloginfo('description'); }
    else if ( is_search() ) { ?><?php bloginfo('name'); ?> | Search Results<?php }
    else if ( is_author() ) { ?><?php bloginfo('name'); ?> | Author Archives<?php }
    else if ( is_single() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); }
    else if ( is_page() ) { ?><?php bloginfo('name'); ?> | <?php wp_title(''); }
    else if ( is_category() ) { ?><?php bloginfo('name'); ?> | Archive | <?php single_cat_title(); }
    else if ( is_month() ) { ?><?php bloginfo('name'); ?> | Archive | <?php the_time('F'); }
    else if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?> | Tag Archive | <?php single_tag_title("", true); } }
    else { wp_title(''); }
    ?>
    </title>

    Let me know how that works for ya...

    Phil

  • johnnymestizo

    Even this does not change the title bar?

    <title>
    
    <?php
    //storefront_title();
    if ( is_home() ) { ?><?php bloginfo('name'); ?> | <?php bloginfo('description'); }
    else if ( is_search() ) { ?><?php bloginfo('name'); ?> | Search Results<?php }
    else if ( is_author() ) { ?><?php bloginfo('name'); ?> | Author Archives<?php }
    else if ( is_single() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); }
    else if ( is_page() ) { ?><?php bloginfo('name'); ?> | <?php wp_title(''); }
    else if ( is_category() ) { ?><?php bloginfo('name'); ?> | Archive | <?php single_cat_title(); }
    else if ( is_month() ) { ?><?php bloginfo('name'); ?> | Archive | <?php the_time('F'); }
    else if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?> | Tag Archive | <?php single_tag_title("", true); } }
    
    else if ( bp_is_group_single() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php bp_get_current_group_name(); }
    else if ( bp_is_group_home() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php bp_get_current_group_name(); }
    else if ( bp_is_group_create() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php bp_get_current_group_name(); }
    else if ( bp_is_group_admin_page() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php bp_get_current_group_name(); }
    else if ( bp_is_group_wire() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php bp_get_current_group_name(); }
    else if ( bp_is_group_forum() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php bp_get_current_group_name(); }
    else if ( bp_is_group_forum_topic() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php bp_get_current_group_name(); }
    else if ( bp_is_group_members() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php bp_get_current_group_name(); }
    else if ( bp_is_group_invites() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php bp_get_current_group_name(); }
    else if ( bp_is_group_leave() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php bp_get_current_group_name(); }
    
    else { wp_title(''); }
    ?>
    </title>
  • johnnymestizo

    or this:

    <title>
    <?php
    $tradr_group_title = bp_get_current_group_name();
    //storefront_title();
    if ( is_home() ) { ?><?php bloginfo('name'); ?> | <?php bloginfo('description'); }
    else if ( is_search() ) { ?><?php bloginfo('name'); ?> | Search Results<?php }
    else if ( is_author() ) { ?><?php bloginfo('name'); ?> | Author Archives<?php }
    else if ( is_single() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); }
    else if ( is_page() ) { ?><?php bloginfo('name'); ?> | <?php wp_title(''); }
    else if ( is_category() ) { ?><?php bloginfo('name'); ?> | Archive | <?php single_cat_title(); }
    else if ( is_month() ) { ?><?php bloginfo('name'); ?> | Archive | <?php the_time('F'); }
    else if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?> | Tag Archive | <?php single_tag_title("", true); } }
    
    else if ( bp_is_group_single() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php echo $tradr_group_title; }
    else if ( bp_is_group_home() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php echo $tradr_group_title; }
    else if ( bp_is_group_create() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php echo $tradr_group_title; }
    else if ( bp_is_group_admin_page() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php echo $tradr_group_title; }
    else if ( bp_is_group_wire() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php echo $tradr_group_title; }
    else if ( bp_is_group_forum() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php echo $tradr_group_title; }
    else if ( bp_is_group_forum_topic() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php echo $tradr_group_title; }
    else if ( bp_is_group_members() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php echo $tradr_group_title; }
    else if ( bp_is_group_invites() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php echo $tradr_group_title; }
    else if ( bp_is_group_leave() ) { ?><?php bloginfo('name'); ?> | Product Group - <?php echo $tradr_group_title; }
    
    else { wp_title(''); }
    ?>
    </title>

    Must be something else wrong?

    Any ideas?

    Cheers,

    Johnny

  • giorgos

    Gentlemen, I have exactly the same issue. I appreciate if you can provide me the code/solution.

    I have currently this in my header.php and works for buddypress pages excepts the groups.

    <title><?php
      if (bp_current_component()) {
        echo 'iPhone Blogger Community | ', trim(wp_title(' ',false,"|")); //bp_get_page_title() . " - ";
      } else {
        if (is_home()) { bloginfo('name'); echo " - "; bloginfo('description'); }
        elseif (is_category() || is_tag()) { single_cat_title(); }
        elseif (is_single() || is_page()) { single_post_title(); }
        elseif (is_search()) { _e('Search Results', THEME_NAME); echo " ".wp_specialchars($s); }
    
        else { echo trim(wp_title(' ',false)); }
      }
      if (!is_home()) { theme_var('options,append_to_title'); }
    ?></title>
  • aecnu

    Greetings giorgos,

    Please start a new ticket regarding your issue and please feel free to copy and paste into the ticket those things that are relative to your issue.

    The reasons I am asking this is for a few reasons, the ticket is over six months old, the staff working with it is no longer with WPMU Dev, the ticket is a mile long and developers will not want to sift through all of it, and last but not least there has been several updates to this plugin including one just a few days ago.

    Have you updated to the newest version?

    Thank you for understanding and for being a WPMU Dev Member!

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.