How to fix broken image links in WordPress

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

Tabla de contenido


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


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 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. For detailed instructions about how to use the cPanel File Manager to change file permissions, please see this article.

Get WordPress Hosting

Article Details

  • Level: Intermediate

Other Articles in This Category

Show More

Related Articles

Show More

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

Usamos cookies con el fin de personalizar para usted nuestro sitio Web y analizar el uso de éste. Usted acepta esto haciendo clic en “Acepto” o al continuar usando el sitio Web. Hay más información sobre cookies en nuestra política de privacidad.