I've got a static homepage and a single empty page called Blog. This empty page is chosen in the Reading Settings for the option Posts Page. To avoid duplicate content I set the 'noindex,dofollow' attribute on this page via the Yoast WordPress SEO plugin. But the meta-tag doesn't show up. If I use the pagination and go to page two of the blog, the meta-tag is there.
I've originally opened a question about this on stackexchange.
What version of WPSEO are you using ?
The recent release 220.127.116.11. Is it possible that this issue isn't WPSEO specific but to the theme or something else?
Hmm that's weird. But to be honest @wintersolutions I don't see why this would be a dupe content problem at all...
Hi, I've investigated a little bit further and tried the same thing on a vanilla wordpress with default theme. Same issue. So my guess is that its really a bug in either WPSEO or Wordpress itself.
For me its a real dup content problem, because my blog is ranking for keywords I've assigned a specific post to. But if you don't experience the issue with other wordpress installations or nobody else complains I'll simply add a template to the theme where I hardcode the noindex. Maybe I also can dig into the code, but my PHP skills are a little bit rusty. Do you merge contributions?
Best regards and thanks for the help guys!
I have the same problem with the last versión of WordPress SEO by Yoast
Ok @wintersolutions let's try to get to the bottom of this. There's nothing in the code that would prevent this from working as far as I can see. What are the specific settings for your static homepage, could you screenshot those for me? Or give me the URL? or both? :)
I've made two screenshots. If you need more information or a account I can supply it for you.
Fix issue #813 - individual page robots settings not being respected …
@jdevalk Actually, there is (something that would prevent it from working). As a blog page is not being regarded as 'singular', the whole page specific settings are ignored.
I've send in PR #834 with a fix, though I have no opinion of whether we should implement this or - like is currently being done - should overrule the page settings for a blogpage with the most optimal SEO setting. Up to you.
Oh and FYI: this is not new behaviour as is suggested in the StackExchange thread. The logic for this hasn't changed in any recent releases.
@jrfnl @jdevalk Many thanks to you guys! Great work really appreciate it.
Closing as the fix is merged to master and will be included in the next release.
Just updated to 18.104.22.168 and it works like a charm! Thanks again...
@wintersolutions Glad to hear it ;-)