• I am a content supervisor on a wordpress site, it uses wordpress seo by yoast plugin. My duty includes analyzing the content and marking it sticky if seems fit. When I mark a particular post as sticky, there is a function which then sets the post to only appear on the category page. Next thing I have to do is manually set the single-post-view to no-index as instructed by the site-owner.

    Since the site is huge, this process is really getting tedious so I am looking for a way to partly automate this process. I am trying to put together a function, which sets the post to no-index, as soon as I update the post as sticky.

    First, I would like to know which wp-function is fired when a post is set to sticky. Second, since the site uses yoast’s seo-plugin, I would like to know about the seo-plugin’s hook/filter which sets the post to no-index. Looking for relevant filters or hooks I found the seo-plugin API page of yoast which has a few filters but I could not find anything that could be useful for my purpose.

    https://wordpress.org/plugins/wordpress-seo/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Set no-index to a post automatically when a post is set to sticky’ is closed to new replies.