Page Title and All In One SEO Title Properties Not Working Correctly All in One SEO Pack Troubleshooting Forum

The support forums have a new home! Please visit All in One SEO Pack's new residence at Semper Plugins to purchase a support plan.

Please consider registering
guest

Log In

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Page Title and All In One SEO Title Properties Not Working Correctly
September 16, 2009
1:21 pm
PerryComo
New Member
Forum Posts: 4
Member Since:
September 16, 2009
Offline

Hi all,

Haven't seen this answered yet, if this is indeed a duplicate I apologize.

I have a Home page that I would like the link at the top (Navigation Bar) for this page to remain the name 'Home', yet have the title be something completely different and SEO friendly.  I seemed to be able to get this working earlier by leaving 'Home' as the title of the actual page, and putting the SEO Friendly Title in the All-In-One SEO Pack info at the bottom of the edit page.

However, this is not working now – the SEO Title info is not updating the actual, posted page header title like it is supposed to, and the only way to change it is to change the Page title (i.e. the one right above the Permalink) – which changes the link to the title name, which is supposed to remain 'Home'.

How the heck do I fix this?  I have several static pages and posts that need to have different SEO Title and Post/Page title info.  Any ideas?  I must have attention grabbing and SEO friendly Post titles different from the Nav Bar heading, or this website is dead.

Stats: (Using WP 2.7 and SEO 1.6.  Was on 1.49 and the above happened, so upgraded to 1.6 – still no dice.)

custom permalinks:  /%post_id%/%postname%/

Plug-In's Installed:

Jeff Johnson's Traffic Getting SEO 2.0

Akismet

All in One

Date Exclusion

Google XML Sitemaps

Homepage Excerpts

MaxBlogPress Ping Optimizer

More Fields

Nofollow Links

Permalinks Moved Permanently

Simple CAPTCHA

Sociable

Viva Content Trimmer

Wordpress.com Stats

Wordpress Database Backup

———————--

Also, I had Post-Plugin Library, Recent Posts, and Category Page installed, but it was messing up both page and post editing (i.e. it wouldn't let you, and the edit page was completely blank, even though the actual live site pages were still showing – in addition to killing some admin functions like Plug-In management!), so I deactivated them.

Hope that's enough info…..

Thanks,

Perry

September 16, 2009
1:44 pm
WordPress Professional
Raleigh, NC
Admin
Forum Posts: 478
Member Since:
October 14, 2008
Offline

Hi Perry,

For a page (as opposed to a post), there are four things you can change with respect to its title.

1) WordPress Page Title – upper textbox on the edit-page screen, this will be the on-page title
2) AIOSEOP Header Title – this is the title in the head section of your source code, and is what shows in the blue bar in the top of your browser

There are two new additions in All in One SEO Pack 1.6.x which are described in this tutorial – http://onefinejay.com/2009/07/…..or-aioseop

For what shall it profit a man if he shall gain the whole world and lose his own soul
September 16, 2009
10:06 pm
PerryComo
New Member
Forum Posts: 4
Member Since:
September 16, 2009
Offline

Thanks WPP,

I've tried that, including all permutations, and it doesn't work.  AIO simply won't update the page/links properly,  which is why I posted a message asking for help.  My coding skills are virtually nonexistent, so I was glad to finally find a plug-in to do it.  Plus, who wants to have to edit the header.php and such manually for each update?

Not sure what's breaking it – I've removed any plugins that seemed to be causing issues.  Any idea where to looK?  I can post php examples from my installation from the various sheets, if someone can tell me what to look for, if that will help.

Thanks,

Perry

September 16, 2009
11:35 pm
WordPress Professional
Raleigh, NC
Admin
Forum Posts: 478
Member Since:
October 14, 2008
Offline

I've tried that
-I'm not a mind-reader. I can't possibly know what you have or haven't done except for what you tell me.

Look in header.php.  Is the link to your home page dynamically generated by wp_list_pages or is it hard-coded?

For what shall it profit a man if he shall gain the whole world and lose his own soul
September 17, 2009
4:07 am
PerryComo
New Member
Forum Posts: 4
Member Since:
September 16, 2009
Offline

No worries, my response was merely factual, not a critique of your diagnostic skills. Ah, the idiosyncracies of communicating via the written medium…

Ok, here is a copy of my header.php.  I take it AIOSEOP is supposed to change the header.php based on the options you define in the user panel? (Or, do plugins use some override or coding hierarchy over the header.php when they are activated?)

Looking at this stuff gives me headaches…

I just see some if-then statements ending with wp_title, hopefully that makes sense to you.

Thanks for your help,

Perry

——————————————-

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?php if (is_home () ) { bloginfo('name'); } elseif ( is_category() ) { single_cat_title(); echo ' – ' ; bloginfo('name'); }
 elseif (is_single() ) { single_post_title(); }
 elseif (is_page() ) { bloginfo('name'); echo ': '; single_post_title(); }
 else { wp_title('',true); } ?></title>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/script.js"></script>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php @include('style.php'); ?>
<!--[if IE 6]><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.ie6.css" type="text/css" media="screen" /><![endif]-->
<link rel="alternate" type="application/rss+xml" title="<?php printf(__('%s RSS Feed', 'kubrick'), get_bloginfo('name')); ?>" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php printf(__('%s Atom Feed', 'kubrick'), get_bloginfo('name')); ?>" href="<?php bloginfo('atom_url'); ?>" />

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>
</head>
<body>
<div class="PageBackgroundSimpleGradient">
</div>
<div class="Main">
<div class="Sheet">
    <div class="Sheet-tl"></div>
    <div class="Sheet-tr"><div></div></div>
    <div class="Sheet-bl"><div></div></div>
    <div class="Sheet-br"><div></div></div>
    <div class="Sheet-tc"><div></div></div>
    <div class="Sheet-bc"><div></div></div>
    <div class="Sheet-cl"><div></div></div>
    <div class="Sheet-cr"><div></div></div>
    <div class="Sheet-cc"></div>
    <div class="Sheet-body">
<div class="nav">
    <ul class="artmenu">
        <?php art_menu_items(); ?>
    </ul>
    <div class="l">
    </div>
    <div class="r">
        <div>
        </div>
    </div>
</div>
<div class="Header">
    <div class="Header-jpeg">
</div>

</div>
 
<div class="logo">
    
</div>

————————————

September 17, 2009
4:15 am
WordPress Professional
Raleigh, NC
Admin
Forum Posts: 478
Member Since:
October 14, 2008
Offline

wp_title isn't the title for your navigational bar title.
It looks like the Artisteer generated theme you're using has its own function art_menu_items instead of the standard wp_list_pages. I have no idea what he does inside of that function.

For what shall it profit a man if he shall gain the whole world and lose his own soul
September 17, 2009
5:19 am
PerryComo
New Member
Forum Posts: 4
Member Since:
September 16, 2009
Offline

Hmmm….yes, it's one of the WP SEO Themes (Daydreamer1) by Austin Delaney.

I found this in the Theme Functions (functions.php) file. The first is the art_menu_items code, the second part are the two functions it references (art_list_pages_filter and art_header_page_list_filter).  Does this mean that both get_pages and wp_list_pages are replaced by these two functions in the title info?

I'm less concerned about actual post names (though that would help too), but for page names, if there is a way to substitute what's here for the AIO defaults, that would be fantastic. (I'm hoping to keep the theme – I do like it, and it cost me some $$ for the template, so…)

Cheers,

Perry

P.S. Sounds like I need to learn some more .php soon…

—————————————--

function art_menu_items()
{
    $homeMenuItemCaption = <<<EOD
Home
EOD;
    $showHomeMenuItem = true;   
    $isHomeSelected = null;
    if ('page' == get_option('show_on_front')) {
        $pageOnFront = get_option('page_on_front');
        $pageForPosts = get_option('page_for_posts');
        if ($pageOnFront) {
            $page = & get_post($pageOnFront);
            if (null != $page)
                $homeMenuItemCaption = apply_filters('the_title', $page->post_title);
            $isHomeSelected = is_page($page->ID);
        } elseif (!$pageOnFront && $pageForPosts) {
            $page = & get_post($pageForPosts);
            if (null != $page)
                $homeMenuItemCaption = apply_filters('the_title', $page->post_title);
        }
    }
    if (null === $isHomeSelected)
        $isHomeSelected = is_home();
    if (true === $showHomeMenuItem || 'page' == get_option('show_on_front'))
    echo '<li><a' . ($isHomeSelected ? ' class="active"' : '') . ' href="' . get_option('home') . '"><span><span>'
        . $homeMenuItemCaption . '</span></span></a></li>';
    add_action('get_pages', 'art_header_page_list_filter');
    add_action('wp_list_pages', 'art_list_pages_filter');
    wp_list_pages('title_li=');
    remove_action('wp_list_pages', 'art_list_pages_filter');
    remove_action('get_pages', 'art_header_page_list_filter');
}

add_filter('comments_template', 'legacy_comments');  
function legacy_comments($file) {  
    if(!function_exists('wp_list_comments')) : // WP 2.7-only check  
    $file = TEMPLATEPATH.'/legacy.comments.php';  
    endif;  
    return $file;  

————————————————--

function art_list_pages_filter($output)
{
    $output = preg_replace('~<li([^>]*)><a([^>]*)>([^<]*)</a>~',
        '<li$1><a$2><span><span>$3</span></span></a>',
        $output);
    $re = '~<li class="([^"]*)(?: current_page_(?:ancestor|item|parent))+([^"]*)"><a ~';
    $output = preg_replace($re, '<li class="$1$2"><a class="active" ', $output, 1);
    $output = preg_replace($re, '<li class="$1$2"><a ', $output);
    return $output;
}

function art_header_page_list_filter($pages)
{
    global $artThemeSettings;
    $result = array();
    if ($artThemeSettings['menu.showSubmenus']) {
        foreach ($pages as $page)
            $result[] = $page;
    } else {
        foreach ($pages as $page)
            if (0 == $page->post_parent)
                $result[] = $page;
    }
    if ('page' == get_option('show_on_front')) {
        $pageOnFront = get_option('page_on_front');
        $pageForPosts = get_option('page_for_posts');
        if ($pageOnFront) {
            foreach ($result as $key => $page) {
                if (0 == $page->post_parent && $pageOnFront == $page->ID) {
                    unset($result[$key]);
                    break;
                }
            }
        }
        if (!$pageOnFront && $pageForPosts) {
            foreach ($result as $key => $page) {
                if (0 == $page->post_parent && $pageForPosts == $page->ID) {
                    unset($result[$key]);
                    break;
                }
            }
        }
    }
    return $result;
}

———————————————-

September 17, 2009
5:28 am
WordPress Professional
Raleigh, NC
Admin
Forum Posts: 478
Member Since:
October 14, 2008
Offline

Does this mean that both get_pages and wp_list_pages are replaced by these two functions.

Yes.

For what shall it profit a man if he shall gain the whole world and lose his own soul
Forum Timezone: America/New_York

Most Users Ever Online: 259

Currently Online:
13 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

romiojuliat: 102

yaoming987: 50

jintuy: 50

miki1986: 33

nikewarm: 28

newshow: 28

Member Stats:

Guest Posters: 0

Members: 6358

Moderators: 3

Admins: 4

Forum Stats:

Groups: 5

Forums: 23

Topics: 1302

Posts: 3192

Newest Members: ngerrero, Nina Gerrero, Yuqian (Dawa) Liu, carofern@cisco.com, pronto, jessie

Moderators: davecashmore (2), aaron (5), tempadmin (0)

Administrators: WordPress Professional (478), hallsofmontezuma (202), onefinejay (10), stevemortiboy (4)