acf group

Solutions on MaxInterview for acf group by the best coders in the world

showing results for - "acf group"
Maja
11 Jan 2021
1// LOOP
2
3<?php if( have_rows('hero') ): ?>
4    <?php while( have_rows('hero') ): the_row(); 
5
6        // Get sub field values.
7        $image = get_sub_field('image');
8        $link = get_sub_field('link');
9
10        ?>
11        <div id="hero">
12            <img src="<?php echo esc_url( $image['url'] ); ?>" alt="<?php echo esc_attr( $image['alt'] ); ?>" />
13            <div class="content">
14                <?php the_sub_field('caption'); ?>
15                <a href="<?php echo esc_url( $link['url'] ); ?>"><?php echo esc_attr( $link['title'] ); ?></a>
16            </div>
17        </div>
18        <style type="text/css">
19            #hero {
20                background-color: <?php the_sub_field('color'); ?>;
21            }
22        </style>
23    <?php endwhile; ?>
24<?php endif; ?>
Judith
09 Apr 2020
1<?php
2
3// BASIC GROUP
4
5$hero = get_field('hero');
6if( $hero ): ?>
7    <div id="hero">
8        <img src="<?php echo esc_url( $hero['image']['url'] ); ?>" alt="<?php echo esc_attr( $hero['image']['alt'] ); ?>" />
9        <div class="content">
10            <?php echo $hero['caption']; ?>
11            <a href="<?php echo esc_url( $hero['link']['url'] ); ?>"><?php echo esc_html( $hero['link']['title'] ); ?></a>
12        </div>
13    </div>
14    <style type="text/css">
15        #hero {
16            background-color: <?php echo esc_attr( $hero['color'] ); ?>;
17        }
18    </style>
19<?php endif; ?>
queries leading to this page
acf get group fieldsget custom field value group and subgroups in acf demoacf get field from specific field groupuse field group of other field group acfhow to save group filds value acf in wordpressacf get field from other field groupadvanced custom fields 3a group fieldacf get sub of sub of groupacf get sub of sub groupadvanced custom fields get groupcustom field group phpgroup in group display acfacf get grouoget value form group advanced custom fieldsadvanced custom fields group buyget custom field value group and subgroups in acfacf var dump groupsacf group field in pageacf option groupget a group field advanced custom fieldacf get data from another groupget field from group acfacf group textacf use field groupsgroup custom fields wordpress phpacf get fields frm groupacf groupacf get field from field groupacf group sub fieldacf group field tutorialacf get subfield from grouphow to save group filds value in wordpress programmaticallyacf get fields form groupacf group field valuedisplay contents group field wordpressgroup in acf wordpressacf add groupacf group codeadvanced custom fields group valuesdisplay groups in groups acfdisplay group feild acfacf group field dataacf get group field valueacf group get fieldget group sub field acfacf prepare groupacf group get from pageshow group field acfacf get field from groupacf get field groupget field inside group acfget group acfacf add field to sub groupacf group wordpressget fieldgroup acfacf field groupacf fields group groupingacf layout groupacf get group fieldacf get group formadnvaced custom fields get field from groupacf group imagedisplay field group acfhow i get url from group fieldsacf get value from groupfield type inwordprss is sub field or fieldacf get data from group fieldgroup field acfacf group for variationsacf get field group for pagehow to get group field in acfdisplay fields group in group acfwordpress acf display from a field groupacf get sub field from groupacf how to get field groupacf group field has valueacf group queryacf field grounp display in pagefield group acfacf display group fieldacf options groupget group inside group acfwordpress get field from grouphow to view acf group fieldset acl groupacf group fieldget field group childadvanced custom fields group fieldgroup acfacf how to get field in groupadvanced custom fields pro group sub fieldget group fields advanced custom fieldsgroup acf fields layoutacf group get the fieldacf get groupacf get fields in field groupwp get field group childhow to use field groups in acfget acf group fieldshow to save group field value acf in wordpressacf the group fieldacf list fields in groupacf group optionsacf call to groupacf group