WordPress.org

Ready to get started?Download WordPress

Forums

Images in posts not showing (4 posts)

  1. szebenyi
    Member
    Posted 5 years ago #

    Please, I have a blog at a-man.hu and if you go into a post, where you can see the comments, the images from the template are not found. (but on the main site they're visible...)

    So please check out the site, and help me if you can :(

    thanks

  2. moshu
    Member
    Posted 5 years ago #

    Ne használj relatív elérési útvonalat a képeknél!

    Use absolute path for the images.

  3. szebenyi
    Member
    Posted 5 years ago #

    How do I do that?

    köszi :)

  4. moshu
    Member
    Posted 5 years ago #

    Instead of ../images/mypic.jpg you should put ALL your theme/design related images in the wp-content/themes/your-theme/images/ directory and then you can use
    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/my-pic.jpg" alt="My pic" />

    Your images are not shown because with the nice permalinks your URL is changing all the time
    example.com
    example.com/archives/2008/09
    example.com/category/category-name
    etc.
    and the relative path is just not enough: it is always relative to the location where you are!

Topic Closed

This topic has been closed to new replies.

About this Topic