WordPress.org

Forums

Image not displaying in single post (5 posts)

  1. ptrinh
    Member
    Posted 8 years ago #

    This is an odd problem. On the main page: http://www.phisproof.com, the post titled "I know what I want" with the picture of the very attractive lady is displayed for all to see.

    On the individual posting page,
    http://philsproof.com/2006/07/22/i-know-what-i-want/

    The image is not displayed (instead the alt text is displayed). I checked the source, and both links are the same. But one is displaying and the other is not. Any ideas?

  2. whooami
    Member
    Posted 8 years ago #

    both links are the same, and both are relative links.. the directory you're pointing to is a sub directory to your main site so the relative link on index.php is correct. It doesnt work on the single page because there isnt a subdirectory called /img within that url path

    The short-term fix is to use absolute urls when you want to post an image.

    <img src="http://philsproof.com/img/2006/07/grace.jpg...

    As far as a "real" long-term fix, Im afraid I cant help ya as Ive not had the problem..

  3. ptrinh
    Member
    Posted 8 years ago #

    Thank you! I wasn't thinking clearly enough about where each relative directory was.

  4. whooami
    Member
    Posted 8 years ago #

    btw, on a related note, your links (in the top corner) are messed up too on your single.php

    Im pulling straws but that might be a mod_rewrite issue, or something. Maybe make sure your 2 url settings in your admin area are set correctly, etc..

    Other than that, I love what youve done :)

  5. ptrinh
    Member
    Posted 8 years ago #

    > btw, on a related note, your links (in the top corner)
    > are messed up too on your single.php

    Thank you so much. I can't believe I didn't catch that. It's been fixed.

    > Other than that, I love what youve done :)

    Thank you very much! I hope you continue to visit and comment/criticize.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.