Issue loading image within post.
-
In my index page I use a function in order to call the associated image from a post and display it as a thumb. However, when using the same code in the single page there is an issue, obviously the image is not stored in the directory of the post itself, rather the parent directory. However, upon searching I have been unable to find a solution to load the image in the single page.
The code is below;
<img class=”large-image” src=”<?php $thumb = get_post_custom_values(‘post-image’); echo $thumb[0]; ?>” alt=”<?php the_title(); ?>” />
Any help is greatly appreciated. ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Issue loading image within post.’ is closed to new replies.