• Resolved futuremediagr

    (@futuremediagr)


    Hello,

    Is there a way to automatically add to password protected posts & the related media files a noindex, nofollow meta tag and also exclude them from appearing in the sitemap?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    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.

    Thread Starter futuremediagr

    (@futuremediagr)

    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?

    Plugin Support Maybellyne

    (@maybellyne)

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

    Thread Starter futuremediagr

    (@futuremediagr)

    Thanks.

    • This reply was modified 4 years, 5 months ago by futuremediagr.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Password Protected post’ is closed to new replies.