Hello @futuremediagr,
Thanks for reaching out!
Yes, you can set a post to noindex, nofollow
in the advanced tab of the Yoast SEO metabox. For the option to “Allow search engines to show this Post in search results?” and “Should search engines follow links on this Post” choose “No”. Also, the password-protected page will not show up in the sitemap or search results.
Hi @maybellyne,
Thanks for the quick response.
Is there a way to automatically set this using code in the functions file?
Also the Advanced tab is available only to the Administrator of the site, correct?
@futuremediagr
You can noindex
several URLs at a time. You can see all the available options here: https://kb.yoast.com/kb/how-do-i-noindex-urls/.
As for nofollow
, you can use the wpseo-robots filter mentioned here. This will allow you to nofollow
URLs in bulk.