How to include meta description and keywords created by Gallery inside Wordpress page
naturalEnquirer
Joined: 2008-06-15
Posts: 52 |
Posted: Mon, 2008-10-27 23:06 |
I use Wordpress to generate my pages including Gallery pages. WPG2 is installed. I'd like to generate meta description and keywords based on a photo's item description and keywords that are listed in Gallery. I've included the the following code in theme.tpl: {if $theme.pageType == 'album' || $theme.pageType == 'photo'} This appears in the html head correctly if I go to Gallery albums directly (domain.com/gallery2). If I access the Gallery page as a WordPress page, the meta data is not in the header. I'm assuming that I need to add some code to the WPGHeader file to include this? Hope someone can help with this. |
|
naturalEnquirer
Joined: 2008-06-15
Posts: 52 |
Posted: Wed, 2008-11-26 15:23 |
Anyone have ideas for this? |
|
naturalEnquirer
Joined: 2008-06-15
Posts: 52 |
Posted: Wed, 2009-01-21 03:15 |
Just checking back again to see if anyone has a solution for this. It is really bad that my Gallery pages have no keywords or descriptions in embedded pages. |
|
floridave
Joined: 2003-12-22
Posts: 27300 |
Posted: Wed, 2009-01-21 06:01 |
http://wpg2.galleryembedded.com/index.php?title=WPG2:Creating_a_custom_wpg2header.php_file Dave |
|
naturalEnquirer
Joined: 2008-06-15
Posts: 52 |
Posted: Wed, 2009-01-21 15:54 |
I've already created a custom wpg2header.php that does return the galley title, based on that aticle. But is it possible to get keywords or dsscriptions? Nothing is mentioned in that link on how to do that. |
|
ozgreg
Joined: 2003-10-18
Posts: 1378 |
Posted: Thu, 2009-01-22 00:51 |
Unfortunately this is not possible until we switch away from utilising the Gallery2 Imageblock module. Development has been basically stopped for the last six months but I hope to dust off development plans soonish.. ____________________________________ |
|