Fix-Images-and-Broken-Links-by-Updating-Paths-in-WordPress

Fix Images and Broken Links by Updating Paths in WordPress

  • August 24, 2022

Today we will learn how to fix broken images link issue in WordPress, after migrating site from local server to live server or (one domain to another). This is a very common issue.

The simple way to fix this issue is just update post_content in wordpress database

Just run below mention SQL query in your database using phpmyadmin

UPDATE wp_posts SET post_content = REPLACE(post_content, 'localhost/test/', 'www.yourlivesite.com/');

Note: replace the table prefix according to your WordPress table prefix

If your website is created with Elementor then you need to perform a additional step to change the broken links.

Replace the URL in Elementor tools

That’s it, after performing these step your broken link issue will be resolved.

Related Post

How to Create a Blog Website on WordPress

How to Create a Blog Website on WordPress

If you’re looking to start a blog website, WordPress is an excellent platform to use. It’s easy to use, customizable, and has a large community of users who can help you out if you run […]

Insert post programmatically in WordPress

Insert post programmatically in WordPress

Today we are gonna learn how to insert post in database programmatically. The function we are going to use is wp_insert_post() For creating a post first you need to create a post array, below is […]

Hide product category or product on shop page

Hide product category or product on shop page

Hello Guys today we gonna learn how can we hide specific product category, specific product on shop page. We are going to do this with the help of code snippets. You can directly add these […]