Skip Navigation

[Resolved] Absolute URLs

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 6 years, 8 months ago.

Assisted by: Nigel.

Author
Posts
#628962

Hi team.

I have a suggestion that some may find very useful if implemented.

I almost always develop websites on my server, then deploy them to the customer. The one issue I keep running into is that data entered into custom fields generally contain absolute URLs, particularly with images.

For instance, I develop a website in my testing environment, uploading custom type gallery images.
I move the website into live environment, and all those image fields still point to my testing environment.

I have written a shortcode that generates the base URL of the website, but fields don't seem to process shortcodes. It's also another step that has to be done which is not easy or convenient to explain to customers.

Is there a way around this? Every part of the website that uses the WP media library works fine after a site move, only custom fields data is absolute.

#629033

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Pamela

How are you migrating your site?

Any modern tool for site migrations—we commonly use Duplicator and All in One WP Migration—will automatically update the URLs, including those in post meta such as Types fields by performing a straightforward search and replace for the current URL and the target URL.