Hello
I found some similar issues, but not sure if they are the same and it is still not fixed.
If there is default meta description set then it overrides what is written in node meta description.
To make quick fix at the end of nodewords_preprocess_page function before
drupal_alter('nodewords_tags', $output_tags, $options);
I wrote
if (isset($variables['node']->nodewords['description']['value']) && !empty($variables['node']->nodewords['description']['value'])) {
$output_tags['description'] = $variables['node']->nodewords['description']['value'];
}
Im sure it is not the right place to put it, but for me it works and hope it will be fixed in next releases.
Comments
Comment #1
Nimo commentedsubscribing
Comment #2
spidersilk commentedI'm experiencing it too - but inconsistently. For example, while all the forums on the site I'm currently working on have their own meta description entered, only the first three of them show that description in the actual source code of the page - all the rest are showing the site default description instead.
Previously, at one point all the page-specific meta tags disappeared and reverted to the default - I thought it was the data loss bug posted about elsewhere, but I've since read that apparently that only happens when you have over 65,000 nodes, and this site has nowhere near that many (I'd originally thought it was if you had over 65,000 database records in total, all tables combined, but apparently not). So I upgraded from 6.x-1.11 to 6.x-1.x-dev, since I saw that recommended as a fix.
Since doing that, now the data entered for the meta tags seems to be retained (it still shows up in the edit forms, at least) - but it doesn't actually generate on the page, except for those first few forums. All the others get the site default tags instead.
I tried the fix above (adding the specified code to the nodewords_preprocess_page function in nodewords.module) but it didn't work for me - I'm still getting the site default description everywhere except in those first three forums. So nothing seems to be able to make the meta tags entered for the rest of the forums actually appear on the page.
This is really critical, especially since the client I maintain this site for has hired an SEO specialist who is (among many other things) trying to ensure that all the pages have accurate and descriptive meta description tags, and she's getting incredibly frustrated with having her work either lost, or unable to appear on the page. Any help would be much appreciated.
Comment #3
MantasK commentedIt seems that I have found a bug.
There are lines in code:
If to believe comment, then condition has to look like this:
Comment #4
spidersilk commentedMantasK - I think that may have actually worked! I haven't checked all pages yet, but the ones I've checked thus far are showing the correct tags...!
Comment #5
koppie commentedI can confirm the bug and the patch. Nice work!
Comment #6
Peng.Pif commented+1. Thanks!
Comment #7
damienmckennaThanks, this is duplicate of #1293494: Custom pages meta-tags not displayed, which has just been committed.