Home › Forums › General Issues › User info by page name › Reply To: User info by page name
Hi James, yes I solved this a couple days ago, just been too busy to post.
I ended up with this:
<?php
$temp_post = get_post($post_id);
$author_id = $temp_post->post_author;
$background_main = get_field(‘background_image’, ‘user_’ . $author_id);
?>
background-image:url(‘<?php echo $background_main; ?>’)
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.