Home › Forums › Front-end Issues › User Field Type Documentation Missing › Reply To: User Field Type Documentation Missing
I believe you can use the get_author_posts_url() function to get the URL of the author by using the user ID. To get the user ID from the user custom field, you can pass a false
value to the third parameter of the get_field() function. It should be something like this:
echo get_author_posts_url(get_field('user_custom_field', false, false));
Where “user_custom_field” is the name of your custom field.
I hope this helps 🙂
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.