All In One SEO plugin clobbering Gallery page titles

jessibird

Joined: 2007-11-03
Posts: 2
Posted: Sat, 2007-11-03 19:46

Has anyone run into this?

Just upgraded to WP 2.3.1 and WPG2 3.0.2, with All In One SEO Pack 1.3.6.4. (http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/)

With the SEO plugin on, all my gallery page titles are now simply
"WPG2 | my blog name".

Before, they were much nicer:
"album or image name | my blog name".

I'm using a custom header, wpg2header.php, and the title line is:
<title><?php bloginfo('name'); ?> <?php echo $g2_title; ?></title>
but the SEO plugin is not keeping the value of the $g2_title variable, apparently, it just sticks in WPG2.

Anyone know why, or if there's a hack I can make to the SEO plugin to stop this?

I am also asking the SEO plugin author for help, but thought I'd post here too.

There was no problem with the previous versions of WP, WPG2, and the SEO plugin.

Any ideas? Any thoughts much appreciated.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sat, 2007-11-03 23:56

I would need to look at the SEO PLugin to understand how it is handling the Wordpress Header but I suspect adding a global $g2_title into the SEO pack should correct your issue..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation

 
jessibird

Joined: 2007-11-03
Posts: 2
Posted: Sun, 2007-11-04 00:25

Thank you for the suggestion, ozgreg, though I have no idea how to follow your suggestion. I don't really know what a global variable is or how to use it.

However, I figured out a workaround. I turned off the plugin options to rewrite page titles, and I edited my theme files to write the titles how I wanted them in the first place. I had to learn a bit more about conditional WordPress tags but it wasn't too hard. Now all my titles, for the blog and the gallery, are just how I like them.

Thanks for the friendly suggestion!