php - Wordpress Custom Fields and Images that don't exist -
i have page (http://schroeder.s482.sureserver.com/york-family-farm/) photo gallery generated uploaded photos using advanced custom fields plugin. there 1 photo in particular page, other pages have 21 photos. there way have show images there?
here code i'm using display it:
<a href="<?php the_field('featuredimage'); ?>" target="_blank"> <img src="<?php the_field('featuredimage'); ?>" width="290px" height="217px" id="ffs-pic"> </a>
thanks much! love learning guys!
i'm guessing 'featuredimage' field created using advanced custom fields plugin.
assuming that's case, have few choices.
still using free version, can create 20 more image fields , name them 'image2', 'image3', 'image4', etc... insert them template same way displaying 'featuredimage'. has obvious downside have manually create everything, rather looping through images , generating html programmatically.
buy 1 of add-ons gallery or repeater. meant sort of thing, , save lot of work.
let me know if of didn't make sense.
Comments
Post a Comment