Home › Forums › General Issues › Single Field: Text OR Page Link? › Reply To: Single Field: Text OR Page Link?
You need to create a true/false field for something like
“Band has Page”
then you create a url field and a text field and each is conditional based on the selection of the true/false field.
Then in your code
if (get_field('my_true_false_field)) {
// show url/page link field
} else {
// show text field
}
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.