Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

efromm on "HELP! Custom URL image"

$
0
0

I purchased a Theme that has a custom section where it suppose that I must just upload images of my clients and the theme does the rest: ( it's very easy to add client, just go to 'Clients--> Add New'. Just type the URL and upload your client logo)

The point is that where I upload an image doesn't show and when I look into the console I can see how doesnt exist any reference to a image link. <img src="" alt="client 1">

The client section has a .php code:

<?php
?>
<!-- OUR CLIENTS -->
	<div class="container clearfix">
		<div class="sixteen columns m-bot-20">
			<ul class="our-clients-container clearfix">
        		    <?php
                    $count = 1;
        		    $type = 'client';
        		    $args=array(
        		    'post_type' => $type,
                    'posts_per_page' => -1
        		    );
        		    query_posts($args);	?>	

					<?php if (have_posts()) : while (have_posts()) : the_post();
						$clienturl = get_post_meta($post->ID, 'iweb_client_link', TRUE);
						$thumb_w = '188';
						$thumb_h = '80';
						$client_img = rwmb_meta( 'iweb_client_img', 'type=plupload_image' );
						foreach ( $client_img as $image )
						{
							$client_img = $image['full_url'];
							$client_img = aq_resize($client_img, $thumb_w, $thumb_h, true);
						}
                    ?>

				<li class="">
					<a href="<?php echo $clienturl; ?>">
						<div class="bw-wrapper">
							<img src="<?php echo $client_img; ?>" alt="<?php the_title(); ?>" />
						</div>
					</a>
				</li>
				<?php endwhile; ?>

			<?php endif; wp_reset_query(); ?>
			</ul>
		</div>
	</div>

maybe some master can help me to edit something so I can upload image and set up the file url. Would be perfect if I can use my stored images in cloud, like AWS S3 service.

Thanks in advance


Viewing all articles
Browse latest Browse all 8245

Trending Articles