Home › Forums › General Issues › Link a field to a page or to a category › Reply To: Link a field to a page or to a category
Hi Keith,
thank you very much for your reply.
Basically, I haven’t understood which solution you suggest.
I mean, text field or checkbox…?
My idea was to use a select field with a dropdown list of locations to choose.
It is ok that I can choose only one location per post.
I have already created a select field and I display it on the front end with this code:
<?php if( get_field(‘paese’, $this->post->ID) ): ?>
<div class=”block-left”><?php the_field(‘paese’, $this->post->ID); ?></div>
<?php endif; ?>
Next step is how can I do to link each location to a page (for example, I could link CHIUSI (SI) to https://paesechevai.com/chiusi
Please help…;-)
Thank you,
Pietro
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.