Support

Account

Home Forums Bug Reports The Group field Reply To: The Group field

  • It looks like your field hero is a group field. If so try this

    <?php
    		
    // vars
    $hero = get_field('hero');	
    
    if( $hero ):
        if( $hero['image'] ): >
            <div id="hero">
                <img />" alt="<?php echo $hero['image']['alt']; >" />
            </div>
    
        <?php endif; >
    <?php endif; >