I also do! I am about to add a custom-made slideshow to my website with custom field suite. I am also using the loop:
<figure role=”group”>
<?php
$fields = $cfs->get(‘bilder’);
foreach ($fields as $field) { ?>
<figure>
<img src=”<?php echo $field[‘bild’]; ?>” alt=”” title=””>
</figure>
<?php } ?>
</figure>
Does someone has a solution for this? I want to get every alt and title tag for every image.
maybe the solution for my problem is the http://ww.wp.xz.cn/plugins/ml-slider/ instead of using custom fields in this case….
An attachment is just another post type. Change your file field’s Return Value to “Attachment ID”, then use get_post( THE_ATTACHMENT_ID ) to get the post properties, e.g. Title.
Will that also allow the URL to be retrieved?
Hey mgibbs180,
Thanks for your reply! Or is there any workaround for setting up an image upload for the URL and one for the ID? Is it possible to retrieve the URL and ID from one File upload?
Thanks!