Support

Account

Home Forums Backend Issues (wp-admin) ID of the field

Unread

ID of the field

  • Can get the ID of the field like field_560389746a525. I have a The_field thats called companies that repeat

    <div class="header_text">
        <p>
           
            <? the_field('company_headertext');?>
            
        </p>
    </div>
    <section class="container-fluid colorbg">
       
        <div class="rowcarousel">
    
         <?php
            if( have_rows('companies') ):
            while ( have_rows('companies') ) : the_row();
        ?>
    
            <div class="plaatje<? the_sub_field('company_id');?>">
                <a href="<?= the_sub_field('company_link');?>">
                <img class="companyimg" alt="<?= the_sub_field('company_title');?>" src="<?= the_sub_field('company_image');?>">
               
            </div>
    
                </a>
            <?php        
                    endwhile;
                ?>
    
            <?php
                    endif;            
                ?>
            </div>
        </div>
    </section>
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.