Home › Forums › General Issues › showing special field in post base on author › Reply To: showing special field in post base on author
so i found this code :
<?php
$author_id = get_the_author_meta('ID');
$author_badge = get_field('author_badge', 'user_'. $author_id );
?>
<img src="<?php echo $author_badge['url']; ?>" alt="<?php echo $author_badge['alt']; ?>" />
if author_badge field returns a shortcode from another plugin wolud it be functional ??
2. if i create a custom field and show the field in profile of users that’s it ?? the field returns wolud be from that specific user id ?? or else ?
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.