• Currently when you add an image to a post or page, the image element’s source attribute value is saved as an absolute link. This creates a problem when you move the site and database to a different server, for example moving it from a development server to the client’s remote server. For those who know to edit the image’s link, there should be no problem migrating the site. Why doesn’t WordPress give us the option of creating absolute or relative links to images?

Viewing 16 replies (of 16 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    @ipstenu, I am not sure I understand how your comment responds to my suggestion. Never the less, I’ll try to prevent the problem in future.

    Instead of letting everyone ‘suffer’, WP made itself extendable so you don’t have to if you don’t want to. If you don’t like something, make a plugin and change it 🙂 If the plugin is really popular, it may end up in core. The whole point I’m trying to make there is this: WordPress doesn’t lock you in. Sometimes the options are built in for everyone, sometimes they require you to code a filter (i.e. make a plugin) so you can have what you want.

Viewing 16 replies (of 16 total)
  • The topic ‘Image links in Posts and pages’ is closed to new replies.