Calling specific image size
-
Hello, i am using this code to call a list of pod items each with image fields:
<?php $services = new Pod('services'); $services->findRecords('id ASC', -1); $total_services = $services->getTotalRows(); ?> <?php if( $total_services>0 ) : ?> <?php while ( $services->fetchRecord() ) : ?> <?php $services_id = $services->get_field('id'); $services_name = $services->get_field('name'); $services_photo = $services->get_field('main_photo'); $services_desc = $services->get_field('description'); $services_slug = $services->get_field('permalink'); $services_photo = $services_photo[0]['guid']; ?> <div class="menubox2" style="background:url('<?php echo $services_photo; ?>')center;">
Which works great. Until my client started uploading 3-4000px width images.
So I wanted to know how I could make sure it only calls a specific size (thumb/medium/large/original).
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Calling specific image size’ is closed to new replies.