BP meta tags

I'm having problems with buddypress showing duplicate meta tags I I leave the recommended wp tags in my header.php

Any recommendations"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><?php function theme_footer_v() { if (!(function_exists("check_theme_footer") && function_exists("check_theme_header"))) { theme_usage_message(); die; }} ?>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
<title><?php if (is_home()) { echo bloginfo('name'); echo (' - '); bloginfo('description');} else if (is_404()) { bloginfo('name'); echo ' - Oops, This is a 404 Page'; } else if (is_search()) { bloginfo('name'); echo (' - Search Results');} else {bloginfo('name'); echo (' - '); wp_title(''); } ?></title>
<meta name="description" content="<?php if ( is_single() ) {
single_post_title('', true);
} else {
bloginfo('name'); echo " - "; bloginfo('description');
}
?>" />

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<?php remove_action( 'wp_head', 'wp_generator' , 'feed_links' ); ?>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

<link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php bloginfo('template_directory'); ?>/css/comments.css" rel="stylesheet" type="text/css" />
<link href="<?php bloginfo('template_directory'); ?>/css/dropmenu.css" rel="stylesheet" type="text/css" />
<?php $featured_slider_activate = get_theme_option('featured_activate'); if($featured_slider_activate == 'Yes') { ?>
<link href="<?php bloginfo('template_directory'); ?>/css/gallery.css" rel="stylesheet" type="text/css" />
<?php } else { ?><?php { /* nothing */ } ?><?php } ?>
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_get_archives('type=monthly&format=link'); ?>
<link rel="icon" href="<?php bloginfo('stylesheet_directory');?>/favicon.ico" type="images/x-icon" />
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/dropmenu.jquery.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/dropmenu_page.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/dropmenu_category.js"></script>
<?php $featured_slider_activate = get_theme_option('featured_activate'); if($featured_slider_activate == 'Yes') { ?>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/mootools.v1.11.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jd.gallery.v2.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jd.gallery.set.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jd.gallery.transitions.js"></script>
<?php } else { ?><?php { /* nothing */ } ?><?php } ?>

<?php $g_analytics = get_theme_option('google_analytics'); echo stripcslashes($g_analytics); ?>

<?php remove_action( 'wp_head', 'wp_generator' ); ?>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
<!--facebook-->
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://opengraphprotocol.org/schema/"
xmlns:fb="http://www.facebook.com/2008/fbml" <?php language_attributes(); ?>>
<meta property="fb:admins" content="731353102"/>
<meta property="fb:app_id" content="124310984276004" />
<meta property="og:type" content="article" />
<?php if(is_home()) {
?><meta property="og:title" content="Blog" /><?php
} else {
?><meta property="og:title" content="<?php the_title_attribute( $args ); ?>" /><?php
}
?>
<?php if (is_home())
echo '<meta property="og:url" content="http://paddleathlete.com" />';
else echo '<meta property="og:url" content="'.get_permalink().'" />';
?>
<!--end facebook-->
</head>

<body>
<?php if(function_exists(updateHeader)) updateHeader(); ?>
<div id="wrapper">
<div id="container">

<div id="topnav">
<div id="navleft">
<ul id="dropmenu">
<!--start inherit page navigation to all blogs-->
<!--?php switch_to_blog('1') ?-->
<!--?php do_action( 'bp_nav_items' ); ?-->
<!--?php restore_current_blog(); ?-->
<!--end-->
<li id="<?php if (is_home()) { ?>home<?php } else { ?>page_item<?php } ?>">" title="Home"><span>Blog Home</span>
<?php $header_page_navigation = get_theme_option('header_page_navigation'); if($header_page_navigation == '') { ?>
<?php wp_list_pages('title_li=&depth=0&sort_column=menu_order'); ?>
<?php } else { ?>
<?php wp_list_pages('exclude='. $header_page_navigation . '&' . 'title_li=' . '&' . 'depth=' . '0' . '&' . 'sort_column=menu_order'); ?>
<?php } ?>
<!-- DROPMENU PAGE END -->
</div><!-- NAV LEFT END -->
<div id="navright">

</div><!-- NAV RIGHT END -->
<div class="clearfix"></div>
</div><!-- TOPNAV END -->

<div id="header">
<div id="siteinfo">
<?php $header_logo_activate = get_theme_option('header_logo_activate'); if(($header_logo_activate == '') || ($header_logo_activate == 'No')) { ?>
<h1>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></h1>
<h2><?php bloginfo('description'); ?></h2>
<?php } else { ?>
" title="<?php bloginfo('name'); ?>"><img src="<?php echo get_theme_option('logo_url'); ?>" alt="<?php bloginfo('name'); ?>" />
<?php } ?>
</div><!-- SITEINFO END -->
<div class='search-header'><form id="Search" name="global_search" method="post" action="http://paddleathlete.com/site-search/">
<label><span style="padding-right: 10px; font-weight:bold; size: 12px;"> Search</span>
<input style="font-size:14px; color:#444;" type="text" name="phrase" id="phrase" />
</label>
<label>
<input type="submit" name="Submit" id="Submit" value="Submit" />
</label>
</form> </div>
<div id="topbanner">
<div class="clearfix"></div>
</div><!-- HEADER END -->

<div id="midnav">
<ul id="dropmenu2">
<?php $header_category_navigation = get_theme_option('header_category_navigation'); if($header_category_navigation == '') { ?>
<?php wp_list_categories('orderby=name&title_li='); ?>
<?php } else { ?>
<?php wp_list_categories('exclude='. $header_category_navigation . '&' . 'title_li=' . '&' . 'depth=' . '0' . '&' . 'orderby=name'); ?>
<?php } ?>
<!-- DROPMENU CATEGORY END -->
<div class="clearfix"></div>
</div>

<div id="main">

<?php include (TEMPLATEPATH . '/breadcrumbs.php'); ?>

  • Johnny K

    Hey how are ya! So the problem I have is to get the basic meta tags to show in buddypress while using All in one SEO ..-->custom theme

    Above I'm using:
    <title><?php if (is_home()) { echo bloginfo('name'); echo (' - '); bloginfo('description');} else if (is_404()) { bloginfo('name'); echo ' - Oops, This is a 404 Page'; } else if (is_search()) { bloginfo('name'); echo (' - Search Results');} else {bloginfo('name'); echo (' - '); wp_title(''); } ?></title>
    <meta name="description" content="<?php if ( is_single() ) {
    single_post_title('', true);
    } else {
    bloginfo('name'); echo " - "; bloginfo('description');
    }
    ?>" />

    works fine except when I move into my BP profile area etc. the title tags are missing
    If I include <title><?php bp_page_title() ?></title> into my header I get conflicts with multiple title tags

    Can you point me in the right direction?

  • Johnny K

    So I managed to figure out something here which could possibly help others using MU/BP and a custom theme to regain at least some title info accross the board while mainting All-in-one-SEO functionality when required

    <title><?php
    if ( is_home() ) { bloginfo('name'); echo ' | '; bloginfo('description'); }
    elseif ( is_search() ) { bloginfo('name'); echo ' | '; _e('Search Results'); }
    elseif ( is_author() ) { bloginfo('name'); echo ' | '; _e('Author Archives'); }
    elseif ( is_single() ) { bloginfo('name'); echo ' | '; wp_title(''); }

    // Entering the buddypress tags
    elseif ( is_page() ) {

    $page_title = rtrim(ltrim(bp_get_page_title()));

    if ( $page_title == "PaddleAthlete.com - Worldwide community for stand up paddleboard and traditional paddleboard athletes" ) { bloginfo('name'); echo ' | '; wp_title('');}
    else{ bp_page_title(); }
    }
    elseif ( is_category() ) { bloginfo('name'); echo ' | '; _e('Archive'); echo ' | '; single_cat_title(); }
    elseif ( is_month() ) { bloginfo('name'); echo ' | '; _e('Archive'); echo ' | '; the_time('F'); }
    elseif (function_exists('is_tag')) { if ( is_tag() ) { bloginfo('name'); echo ' | '; _e('Tag Archive'); echo ' | '; single_tag_title("", true); } }
    else { } ?></title>