Home › Forums › Front-end Issues › How to get acf user image in search results? › Reply To: How to get acf user image in search results?
Hi @aronblack
Lets first debug your code:
1. Please remove global $post;
– this is not needed
2. Debug $author_id
3. Debug $author_badge
You can debug like so:
<?php
echo '<pre>';
print_r( $author_badge );
echo '</pre>';
die; ?>
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.