[resolved] Attachment permalinks (3 posts)

  1. silencematters
    Posted 8 years ago #

    I am having trouble applying the clean permalink structure to my uploads/attachements in a consistent way.

    One some occasions, I notice that the attachment gets the clean URL,
    and on other occasions, it adopts the basic, http://mydomain.com/?attachment_id=533

    My current permalink structure is Month and name based:

    Any clarity on when and why this occurs would be much help.

  2. silencematters
    Posted 8 years ago #

    This may be in need of more clarification.

    When a post is in DRAFT, the permalinks are going to appear as http://mydomain.com/path-to-images/?attachment_id=533

    Once the post is published, the permalinks then change to the correct URL structure.

    The other thing I am seeing is that images are associated with the initial post they get published with. This is sort-of documented on the Attachments page:

    Attachments are not deleted when their parent posts are deleted; they just become "orphans". Orphan attachments are no longer reachable by pretty permalinks (/post_name/attachment_name) but can still be found at default URIs (/?attachment_id=N).

    It's not yet possible to move an attachment from one parent post to another, or assign orphan attachments to a new parent.

    - http://codex.wordpress.org/User:Lolrus/Using_Attachments#Editing_and_deleting_attachments

  3. silencematters
    Posted 8 years ago #

    I updated the Codex with a description of how permalinks and attachements seem to work

Topic Closed

This topic has been closed to new replies.

About this Topic