Php problem: Images don't load in sidebar and posts
-
Hello!
I hope somebody can actually help me with this PHP disaster which I can’t resolve myself. I know quite some things about wordpress, but PHP is a language which I don’t understand unfortunately :(.
I’m creating a recruiting board page where personal trainers and companies can meet. For example: A company can post a job and a personal trainer can post his or her profile and resume. I really would like to see the most recent job and coach resume in the sidebar (http://portal.steptomilstone.nl) but the thumbnail function isn’t working. If we look to the pages http://portal.steptomilestone.nl/job/back-end-developer/ and http://portal.steptomilestone.nl/candidate/abu-antar-3/ we can see that the pictures also aren’t loading inside the frame/post.
What am I doing wrong? I’m using the VT_resizer function to create the thumbnails and I guess this function works because of the page http://portal.steptomilestone.nl/company/industry-llc/ where everything works the way it should be.
I’ve searched in my FTP host and found that in /theme/include/ the php code was for “showing” the images.
I got this two codes:
<?php if($item_img1):?> <div class="photo"> <div class="company-photo-container"><img src="<?php echo $item_img1; ?>" alt="" height="340"/></div> </div> <?php endif; ?> <div class="company-info clearfix"> <div class="company-info-social"> <?php if ( has_post_thumbnail() ) { $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); ?> <div class="compnay-photo"> <img src="<?php echo vt_resizer($large_image_url[0], '200', '200'); ?>" alt="<?php the_title() ?>" title="<?php the_title(); ?>" /> </div> <?php } ?>and this one:
<div class="sidebar-container container-8"<?php if($tabs) echo ' style="background: rgba(0, 0, 0, 0);"'; ?>> <?php if ( has_post_thumbnail() ) { ?> <div class="company-page-map<?php if($tabs) echo ' margin-top-minus-20'; ?>"> <?php $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); ?> <div class="company-page-map-container" style="height: 245px"> <img src="<?php echo vt_resizer($large_image_url[0], '245', '245'); ?>" alt="<?php the_title() ?>" title="<?php the_title(); ?>" /> </div>I don’t understand this piece of code and I’m not really really sure if this is what I should looking for.
I really hope that somebody can help me and can save me from this headache which is already keeping me busy for hours and hours.
Thanks in advance!
Kind regards
Mitchell
The topic ‘Php problem: Images don't load in sidebar and posts’ is closed to new replies.