Thanks Jonathan – all works!
I have added the code to one template and it works but if I add it to multiple page templates for a theme it only works on one.
Michelle
Hi Jonathan,
I have implemented the code that you have provided and it works perfectly, just what I was looking for, thank you so much for your help.
Michelle
I have managed to get this working with your code Jonathan, thanks for your help.
The problem was I had not changed over to ID in the admin area.
Would I need to write out the same code for each image if I have multiple images on a page?
Hi again,
I think this is what I am looking for but I am not sure which bits I need: http://www.advancedcustomfields.com/resources/field-types/image/
Hi Jonathan,
Thanks for the fast reply sorry for my slow one I have been abroad.
I have tried the following:
<?php $alt_text = get_post_meta($imageID , '_wp_attachment_image_alt', true); ?>
<img src="<?php the_field('portimg2'); ?>" alt="" />
But it doesn’t seem to be working, any ideas?
Michelle