Broken Image Links in WordPress

Web Hosting in Pakistan

This articles describes how to resolve a problem that may occur when you try to add images to a WordPress post.

PROBLEM

When you add a post in WordPress that contains images, the images appear as broken links in the post body.

RESOLUTION

To resolve this problem, you must set the correct file permissions. Specifically, the wp-content/uploads directory, as well as all subdirectories beneath it, must have their file permissions set to 755. Additionally, all files in these directories must have their file permissions set to 644.

  • If you installed WordPress into the primary domain's document root directory, the full path is /home/username/public_html/wp-content/uploads, where username represents your web hosting account username. If you installed WordPress in a subdirectory or subdomain, then the wp-content/uploads directory is located in a subdirectory beneath /home/username/public_html.

To set the correct file permissions for these directories and files, you can use the cPanel File Manager.

Was this answer helpful?

 Print this Article

Also Read

How to install and configure the 2Checkout plugin for WordPress

This article describes how to install the 2Checkout plugin for WordPress. The 2Checkout plugin is...

How to Change Comment Notification Settings in WordPress

This article describes how to change the WordPress e-mail notification settings for comments and...

How to Reset a WordPress Admin Password

This article describes how to manually reset the WordPress administrator password in the...

How to Configure PayPal Payments for WordPress

This article describes how to set up PayPal payments for a WordPress site using the WooCommerce...

How to install and configure a bbPress forum on WordPress

This article describes how to install and configure a bbPress forum on a WordPress site. With the...

Web Hosting in Pakistan

Powered by WHMCompleteSolution