The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Publish/Updating post is changing image links (3 posts)

  1. megaspintim
    Posted 4 years ago #

    I have written a filter to wrap images included in posts with figure tags and their captions with figcaption tags. I turned off the visual editor so that it doesn't strip out all the html from the images.

    That all seems to work fine until I publish or update the post. At this point the link to the full size image gets changed to /sitename/post-type/post-title/attachment/attachment-title/
    where before it was /sitename/assets/filename.jpg

    Can anyone help suggest why this is happening?



  2. megaspintim
    Posted 4 years ago #

    Here is the pastebin link to code for the filter I am using.

  3. megaspintim
    Posted 4 years ago #

    The solution was to remove the rel="attachment" from the anchor.

Topic Closed

This topic has been closed to new replies.

About this Topic