How to include gallery album name as page title in gallery embedded in Wordpress
naturalEnquirer
Joined: 2008-06-15
Posts: 52 |
Posted: Fri, 2008-11-21 15:45 |
I use Wordpress with WPG2 and Gallery2 embedded. I would like the gallery title to be output but can't get it to work. e.g. http://natureinfocus.com/gallery2/v/fauna/birds/Bald_Eagle.jpg.html shows Bald Eagle I changed wpg2header file to: <title> » <?php echo $g2_title; ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title> Wordpress pages show correct titles. Really want titles since it can affect search engines. Thank you. Update: In Wordpress, I switched to default theme and then switched back to my theme. Suddenly this works. No clue to what changed. |
|