• I want open the acf field inside the class cast , But the acf field before class called , sorry i can not good speack english

    i using this code

    <?php if ( get_field('cast') ) {
              echo '<div class="cast">
                      <h4 class="title">casts</h4></br>
                     ' . the_field ('cast') . '
                    </div>';}?>

    but not worked and this is big problem for me

    example ( My html code ) :

    <?php the_field('cast')?>
    <div class"cast">
    <h4>cast</h4>
    </div>

    please help me

    https://www.ads-software.com/plugins/advanced-custom-fields/

  • The topic ‘how to open acf field inside custom class’ is closed to new replies.