WordPress.org

Ready to get started?Download WordPress

Forums

[NSFW] path difference in uploads folder? (5 posts)

  1. vwallace
    Member
    Posted 1 year ago #

    The homepage of my blog displays all content correctly. However, when I view the permalink version of individual posts, images fail to load. For whatever reason, WordPress is appending the path to the uploads folder after the permalink.

    Correct Image URL: http://domain.com/blog_folder/wp-content/uploads/2013/01/file.jpg

    Where the individual post is trying to call the image from: http://domain.com/blog_folder/2013/01/16/post-name/wp-content/uploads/2013/01/file.jpg

    Any suggestions on where I can fix this so it uses the correct path? Any idea why the individual post page would be looking in a different place than the blog index?

    Thanks!

  2. Daiv Mowbray
    Member
    Posted 1 year ago #

    Can you post a real sample, like the actual url?
    It could be your theme, try switching to the 2012 theme to test.

  3. vwallace
    Member
    Posted 1 year ago #

  4. Daiv Mowbray
    Member
    Posted 1 year ago #

    Ok,
    so on the home page you have images with their source set to :
    wp-content/uploads/2013/01/ELIZABETH-RENSTROM_1581.jpg
    and on the sub pages such as this:
    http://cameraclubny.org/ccny_blog/2012/12/17/happy-holidays/
    the image source is set to:
    wp-content/uploads/2012/12/IMG_7782-copy.jpg
    So the images are always coming with the same path.
    you must then have an error in your system set up.
    My guess is that you have the WordPress installed in the folder http://cameraclubny.org/ccny_blog but you probably have your WordPress Address (URL) and
    Site Address (URL) set incorrectly. In your case they should both be set to: http://cameraclubny.org/ccny_blog

  5. Daiv Mowbray
    Member
    Posted 1 year ago #

    If this is not the case, and the change does not fix your issue, try switching to theme 2012 and test. If issue is fixed, then your theme is the problem. Most would normally display images with the full source path including the domain. ie: src="http://www.domain.com/install/wp-content/uploads/2012/11/image.jpg"

Topic Closed

This topic has been closed to new replies.

About this Topic