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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.