noindex not working on Posts page #813

Closed
wintersolutions opened this Issue Mar 15, 2014 · 13 comments

Projects

None yet

4 participants

@wintersolutions

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.

@jrfnl

What version of WPSEO are you using ?

@wintersolutions

The recent release 1.5.2.2. Is it possible that this issue isn't WPSEO specific but to the theme or something else?

@jdevalk
Yoast member

Hmm that's weird. But to be honest @wintersolutions I don't see why this would be a dupe content problem at all...

@wintersolutions

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!

@manuiglesias

I have the same problem with the last versión of WordPress SEO by Yoast

@jdevalk
Yoast member

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? :)

@wintersolutions

I've made two screenshots. If you need more information or a account I can supply it for you.
read
preferences

@jrfnl jrfnl added a commit to jrfnl/wordpress-seo that referenced this issue Mar 17, 2014
@jrfnl jrfnl Fix issue #813 - individual page robots settings not being respected …
…for blogpage
a3cd29c
@jrfnl

@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.

@jrfnl

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.

@wintersolutions

@jrfnl @jdevalk Many thanks to you guys! Great work really appreciate it.

@jrfnl

Closing as the fix is merged to master and will be included in the next release.

@jrfnl jrfnl closed this Mar 17, 2014
@wintersolutions

Just updated to 1.5.2.3 and it works like a charm! Thanks again...

@jrfnl

@wintersolutions Glad to hear it ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment