Resolve broken images links in WordPress

The article guides you on the way to resolve a problem which will occur once you try to add pictures to a WordPress post.

What is the problem?

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

What is its resolution?

To resolve such issue, you required to set the correct file permissions. Significantly, the wp-content/uploads directory and subdirectories under it should have their file permissions set to 755. Also, all files in these directories should have their file permissions set to 644.

Note: If you’ve got installed WordPress into the primary domain’s document root directory, then the full path will be /home/username/public_html/wp-content/uploads, whereas the username denotes your account username. In case, you’ve installed WordPress in an subdirectory or subdomain, then the wp-content/uploads directory get placed in an subdirectory under /home/username/public_html.

For these directories and files to set the right file permissions, you can use the cPanel File Manager.