Can't find images in the .php :((
-
Hey guys, I will REALLY appreciate if you could help me out with this:
I want to update some images on “work” page of this website: http://releasethehounds.tv
I did inspect element, and found out that the image address is:
<img src=”/site/wp-content/uploads/2011/11/earthday_poster.jpg”>
I review the code in the .php of the “work” template, and couldn’t find this address. What I found is below:<div id=”projectFeed”>
<?php
global $post;// get project examples
$projects = get_posts(array(‘post_type’ => ‘page’, ‘numberposts’ => ‘-1’, ‘post_parent’ => $post->ID, ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’));foreach( $projects as $post ) : setup_postdata($post);
$projectImage = get_post_meta($post->ID,’project_image’,true);
$lightBox = get_post_meta($post->ID,’lightbox’,true);?><?php if($projectImage): ?>
<div class=”projectItem” align=”center”><?php if(get_the_content() != “”): ?>
<div class=”magnifyingGlass”>
<span style=”cursor:pointer;”><img src=”<?php bloginfo(‘template_directory’); ?>/images/glass.png”></span>
<div class=”projectDescriptionWrapper”>
<div class=”closeProjectDescription”>X</div>
<div class=”projectDescription”><?php the_content(); ?></div>
</div>
</div>
<?php endif; ?><div style=”clear:both;”></div>
<?php
// check for multiple images
$projectImages = array();
if(strpos($projectImage,”,”)){
// multiples
$projectImages = explode(“,”,$projectImage);
}
else{
$projectImages[] = $projectImage;
}
?><?php foreach($projectImages as $projectImage): ?>
<?php if($lightBox): ?>” class=”lightbox” title=”<?php echo htmlspecialchars(get_the_title()); ?>”><?php endif; ?>
<img src=”<?php echo $projectImage; ?>”>
<?php if($lightBox): ?><?php endif; ?><?php endforeach; ?>
I guess the images are received from the Media-Library? However, when I go to the WordPress Page panel, I don’t see any images under “work” page. When I try to upload some images to that page using “work” template, the images don’t show up. They only show up if I choose Default Template.
I just want to know where those images are and how to replace them…
THANK YOU SOOOO MUCH!
The topic ‘Can't find images in the .php :((’ is closed to new replies.