Home › Forums › Bug Reports › The Group field › Reply To: The Group field
What did you get if you
<?php
echo "<pre>";
print_r($hero);
echo "</pre>";
?>
BTW: There’s one index to much echoing the $hero parameters:
<?php
// vars
$hero = get_field('hero');
if( $hero ): ?>
<div id="hero">
<img src="<?php echo $hero['url']; ?>" alt="<?php echo $hero['alt']; ?>" />
</div>
<?php endif; ?>
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.