Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your question.

    WordPress creates “archive pages” for each registered taxonomy, including MLA’s Att. Categories and Att. Tags. However, the standard WordPress templates for taxonomy archive pages specifically exclude Media Library items (attachments), so the archive pages for the MLA taxonomies are always empty. Here is an earlier topic with more information and suggestions:

    Att Categories menu returns 404 error

    You can prevent search engines such as Google from indexing these pages by adding entries to your site’s robots.txt file. There are a number of plugins that make the process simple, such as:

    WP Robots Txt – hasn’t been updated in quite a while, but I use it without any problems in WordPress 4.3.1

    Multipart robots.txt editor – I haven’t tried this one

    WP Robots Txt, for example, adds a text area to the Settings/Reading admin submenu. There you can add statements such as :

    User-agent: *
    Disallow: /wp-admin/
    Disallow: /wp-includes/
    Disallow: /feed/
    Disallow: /home/feed/
    Disallow: /comments/feed/
    Disallow: /attachment_category/
    Disallow: /attachment_tag/

    I believe the past two statements will remove the MLA taxonomies from the index, although I haven’t tested that.

    I hope that gives you a solution for your application. I am marking this topic resolved, but please update it if you have any problems or further questions about taxonomy archive pages or robots.txt editing. Thanks for your interest in the plugin.

    Thread Starter Superbobo75

    (@superbobo75)

    Super!

    Thanks!

    Superbobo75

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable Google index attachment_category’ is closed to new replies.