Get Ultimate Member user profile url with advanced custom fields
-
Hello, this code is supposed to get the post’s author url, using Advanced Custom Fields, but this gets the default wordpress url that goes to the user profile. How can I adapt it for getting Ultimate Member User profile?
<div id="meta-coauthor"> <span class='metacoauteur'> <?php $values = get_field('post_autor'); if($values) { foreach($values as $value) { $author_ID = $value['ID']; $author_url = esc_url( get_author_posts_url($author_ID) ); echo ', <a href="'.$author_url.'">' . $value['display_name'] . '</a>'; } }; ?> </span> </div>
I know it has something to do with
um_user_profile_url( get_current_user_id() );
, but I don’t know to callum_user_profile_url
from inside ACF function.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Get Ultimate Member user profile url with advanced custom fields’ is closed to new replies.