Home › Forums › General Issues › Prefilling fields not visible to user › Reply To: Prefilling fields not visible to user
I would not bother with a field for the Instagram URL. I would just have a “intagram user name” field and then if it’s filled in then output the url in code, something like this:
if (get_field('intagram_user_name')) {
?><a href="https://instagram.com/<?php
the_field('intagram_user_name'); ?>" target="_blank>Instagram</a><?php
}
Storing the actual URL to instagram for every user seems like a waste of DB space.
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.