WordPress.org

Support

Support » How-To and Troubleshooting » Image not displaying in single post

Image not displaying in single post

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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..

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

    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 🙂

    > 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image not displaying in single post’ is closed to new replies.