Support

Account

Home Forums General Issues how to merge/combine acf image field and link or url field Reply To: how to merge/combine acf image field and link or url field

  • I’m not sure from your description what it is that you are trying to do.

    If you are asking how can you have ACF automatically create images with links and buttons then this is not possible. You need to create the fields and then alter the PHP/HTML/etc in your theme to use these fields.

    An example, let’s say I have an image field that returns the image url and a url field.

    
    <a href="<?php the_field('url_field_name'); ?>"><img src="<?php the_field('image_field_name'); ?>" /></a>
    

    for more information I suggest Getting Started with ACF.