Support » Plugin: Yoast SEO » Redirect Attachment URL's to Parent Post URL Not Working

Viewing 1 replies (of 1 total)
  • AskKim

    (@askkim)

    Yoast Support

    Hi Wes,

    When you check the media item, in the media library, for the item that is getting it’s attachment page indexed… is it ALSO attached to an article?

    It’s important to understand attachment pages and their ATTACHMENT to an article… which is two different things that sound confusingly alike.

    Every media item on your site has an attachment page… that’s due to how WordPress stores media.

    Each media item can ALSO be “attached” to an article (post/page/etc) by having originally been uploaded from within there.

    Even though you can use the same image/media in multiple articles… the media can only be attached to one of them.

    And if you upload the media to the media library, unless you manually create an attachment, this item is NOT attached to an article, but still has an attachment page.

    This means that many of your media items likely still have attachment pages that can not be redirected to an article as the item is not actually “attached” to an article. In that case, those attachments pages can’t be directed anywhere.

    https://codex.wordpress.org/Using_Image_and_File_Attachments

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect Attachment URL's to Parent Post URL Not Working’ is closed to new replies.