[Plugin: Custom Content Type Manager] Issues with :to_image_src filter
-
I’ve resisted posting on here for a few days, but I’m having an issue with the to_image_src filter for which I cannot find a resolution to save my life.
I’ve created a custom content type which contains a ‘img_photo’ custom field. The field is repeatable, so the client can upload/select as many photos as needed.
I currently have a working for loop that will display the actual image, but I am having trouble just grabbing the source in order to create a link.
Here is my loop that is displaying the photos:
<?php $array_all_photos = get_custom_field('img_photo:to_array'); foreach ($array_all_photos as $img_id) { ?> <a href=""> <? print CCTM::filter($img_id, 'to_image_tag');?> </a> <?php } ?>
I’ve tried so many methods for outputting the image src, I couldn’t tell you all of them. What seems most obvious is simply using
<? print CCTM::filter($img_id, 'to_image_src');?>
within the href=”” in the loop above, but that outputs no HTML at all.Do you have any suggestions? Thanks!
http://wordpress.org/extend/plugins/custom-content-type-manager/
- The topic ‘[Plugin: Custom Content Type Manager] Issues with :to_image_src filter’ is closed to new replies.