Images display correctly on front-end profiles (author.php) EXCEPT for profiles whose users have yet to create a post or page. If a user hasn’t created a post or page, the images they upload to their back-end profiles will not display on their front-end profiles.
Is there a way to display user uploaded images on the front-end for users who have not created any posts or pages? I’m using the code from the documentation found HERE at the bottom of the page.
Old question, but hopefully this information will help someone.
Most of the time the author information is displayed inside “The Loop”, which means that if the user has not posts it will never be displayed. You need to move this to a point outside of “The Loop”. This can be done by editing the field author.php, or if your theme does not have this file, by creating it.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users