• mwszeb

    (@mwszeb)


    hey,
    i just changed my blog permalink setting from default to Custom Structure e.g. /%post_id%/%postname%/ but after that my images are not showing. however all images were showing perfectly with default permalink. (<img src=”images/image-name.gif” />
    how can i resolve it.
    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • stvwlf

    (@stvwlf)

    You can’t use relative paths when you are using permalinks because the effective folder that the permalink path is relative to is different than you think it is, and changes based on what type of page (category, single, posts) you are viewing it on.

    If WordPress is installed in your root folder and the images are in a folder called /images in the uploads folder under wp-content, use this
    <img src=”/wp-content/uploads/images/image-name.gif” />

    If WP is installed in a folder called /wordpress/ and the same is true of images folder as forst example, use this
    <img src=”/wordpress/wp-content/uploads/images/image-name.gif” />

    You have different folder names, so adjust this code to your folder names

    Thread Starter mwszeb

    (@mwszeb)

    thanks for help. i notice my mistake by your reply
    problem resolved. actually i was missing very first “/” in image path. as i correct the path, all images are showing.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘how to show images’ is closed to new replies.