Fleur de printemps Banc ajouré Tamaris (Alt)

3 Posts (BB)

Fleur de printemps

Actualité 2

Nonem aut ut illatiis simus mod est volecae. Ro tem harum quis nempore cust pra dest optas acearibus ex et hario. Ut iumet ute plab inctur sus, velestrum restiscid quia…

En savoir plus

ACF Relationship

Beaver Themer field connections (custom)

[ wpbb archive:acf_rel_archive slug='rel_actus' key='posts_multi_fields' ]
[ wpbb archive:acf_rel_archive slug='rel_actus' key='posts_title' ]
[ wpbb archive:acf_rel_archive slug='rel_actus' key='posts_feat_img' ]

Custom Content Shortcode

[ related rel_actus ]
[ field title-link ]
[ field thumbnail-link ]
[ /related ]

ACF Group

Beaver Themer field connections

[ wpbb archive:acf type='text' name='mygroup_mygroupedfield1' ]
[ wpbb archive:acf type='text' name='mygroup_mygroupedfield2' ]
NO DATA!
NO DATA!

Custom Content Shortcode

[ field mygroup_mygroupedfield1 ]
[ field mygroup_mygroupedfield2 ]
NO DATA!
NO DATA!
[ field=mygroup_mygroupedfield1,mygroup_mygroupedfield2 compare=or ]
>>> CONDITIONAL NOT WORKING!
NO DATA!

ACF Text

Custom shortcode: excerpt

This custom shortcode shortenize an ACF Text field and outputs an excerpt.

[ text_field_excerpt ]

The PHP function is located in function.php

// http://wpmunchies.com/get-excerpt-advanced-custom-field-acf/

function custom_field_excerpt() {
	global $post;
	$text = get_field('myfield1'); //Replace 'your_field_name'
	if ( '' != $text ) {
    	$text = strip_shortcodes( $text );
		$text = apply_filters('the_content', $text);
    	$text = str_replace(']]>', ']]>', $text);
    	$excerpt_length = 20; // 20 words
    	$excerpt_more = apply_filters('excerpt_more', ' ' . '[...]');
    	$text = wp_trim_words( $text, $excerpt_length, $excerpt_more );
    }
	return '<div class="av-excerpt">'.apply_filters('the_excerpt', $text).'</div>';
}
add_shortcode('text_field_excerpt', 'custom_field_excerpt');
NO DATA!

Custom Content Shortcode

[ field myfield1 ]
[ field myfield2 ]
NO DATA!
NO DATA!
[ if field=myfield1 or field=myfield2 ]
>> CONDITIONAL NOT ALWAYS WORKING!
One field at least has data

ACF Repeater

Beaver Themer field connections

[ wpbb-acf-repeater name='galeries_repeater' ]
    [ wpbb post:acf type='text' name='titre_galerie' ]
    <img src='[ wpbb post:acf type="image" name="image_in_repeater" ]' />
[ /wpbb-acf-repeater ]

Custom Content Shortcode

[ repeater galeries_repeater ]
    [ field titre_galerie ]
[ /repeater ]
NO DATA!

ACF Date picker

Beaver Themer field connections

[ wpbb post:acf type='date_picker' name='my_test_date_picker' ]
24/10/2019

Custom Content Shortcode

[ field acf_date=my_test_date_picker ]
20191024

Bootstrap Modal

Banc ajouré

Actualité 3

Nonem aut t illatiis simus mod is volecae. Ro tem harum qua nempore cust pra dest os acearibus ex and hario. Ut iumet ute plab incture sus, velestrum restiscid which…

En savoir plus

ACF Relationship

Beaver Themer field connections (custom)

[ wpbb archive:acf_rel_archive slug='rel_actus' key='posts_multi_fields' ]
[ wpbb archive:acf_rel_archive slug='rel_actus' key='posts_title' ]
[ wpbb archive:acf_rel_archive slug='rel_actus' key='posts_feat_img' ]

Custom Content Shortcode

[ related rel_actus ]
[ field title-link ]
[ field thumbnail-link ]
[ /related ]

ACF Group

Beaver Themer field connections

[ wpbb archive:acf type='text' name='mygroup_mygroupedfield1' ]
[ wpbb archive:acf type='text' name='mygroup_mygroupedfield2' ]
My grouped content actu 3…
NO DATA!

Custom Content Shortcode

[ field mygroup_mygroupedfield1 ]
[ field mygroup_mygroupedfield2 ]
My grouped content actu 3…
NO DATA!
[ field=mygroup_mygroupedfield1,mygroup_mygroupedfield2 compare=or ]
>>> CONDITIONAL NOT WORKING!
NO DATA!

ACF Text

Custom shortcode: excerpt

This custom shortcode shortenize an ACF Text field and outputs an excerpt.

[ text_field_excerpt ]

The PHP function is located in function.php

// http://wpmunchies.com/get-excerpt-advanced-custom-field-acf/

function custom_field_excerpt() {
	global $post;
	$text = get_field('myfield1'); //Replace 'your_field_name'
	if ( '' != $text ) {
    	$text = strip_shortcodes( $text );
		$text = apply_filters('the_content', $text);
    	$text = str_replace(']]>', ']]>', $text);
    	$excerpt_length = 20; // 20 words
    	$excerpt_more = apply_filters('excerpt_more', ' ' . '[...]');
    	$text = wp_trim_words( $text, $excerpt_length, $excerpt_more );
    }
	return '<div class="av-excerpt">'.apply_filters('the_excerpt', $text).'</div>';
}
add_shortcode('text_field_excerpt', 'custom_field_excerpt');

My content actu 3…

Custom Content Shortcode

[ field myfield1 ]
[ field myfield2 ]
My content actu 3…
NO DATA!
[ if field=myfield1 or field=myfield2 ]
>> CONDITIONAL NOT ALWAYS WORKING!
One field at least has data

ACF Repeater

Beaver Themer field connections

[ wpbb-acf-repeater name='galeries_repeater' ]
    [ wpbb post:acf type='text' name='titre_galerie' ]
    <img src='[ wpbb post:acf type="image" name="image_in_repeater" ]' />
[ /wpbb-acf-repeater ]

Galerie 1

Galerie 2

Custom Content Shortcode

[ repeater galeries_repeater ]
    [ field titre_galerie ]
[ /repeater ]

Galerie 1

Galerie 2

ACF Date picker

Beaver Themer field connections

[ wpbb post:acf type='date_picker' name='my_test_date_picker' ]
07/11/2019

Custom Content Shortcode

[ field acf_date=my_test_date_picker ]
20191107

Bootstrap Modal

Tamaris (Alt)

Actualité 1

Test Nonem aut ut illatiis simus mod est volecae. Ro tem harum quis nempore cust pra dest optas acearibus ex et hario. Ut iumet ute plab inctur sus, velestrum restiscid…

En savoir plus

ACF Relationship

Beaver Themer field connections (custom)

[ wpbb archive:acf_rel_archive slug='rel_actus' key='posts_multi_fields' ]
[ wpbb archive:acf_rel_archive slug='rel_actus' key='posts_title' ]
[ wpbb archive:acf_rel_archive slug='rel_actus' key='posts_feat_img' ]

Custom Content Shortcode

[ related rel_actus ]
[ field title-link ]
[ field thumbnail-link ]
[ /related ]

ACF Group

Beaver Themer field connections

[ wpbb archive:acf type='text' name='mygroup_mygroupedfield1' ]
[ wpbb archive:acf type='text' name='mygroup_mygroupedfield2' ]
My grouped content actu 1…
My grouped content actu 1 bis…

Custom Content Shortcode

[ field mygroup_mygroupedfield1 ]
[ field mygroup_mygroupedfield2 ]
My grouped content actu 1…
My grouped content actu 1 bis…
[ field=mygroup_mygroupedfield1,mygroup_mygroupedfield2 compare=or ]
>>> CONDITIONAL NOT WORKING!
NO DATA!

ACF Text

Custom shortcode: excerpt

This custom shortcode shortenize an ACF Text field and outputs an excerpt.

[ text_field_excerpt ]

The PHP function is located in function.php

// http://wpmunchies.com/get-excerpt-advanced-custom-field-acf/

function custom_field_excerpt() {
	global $post;
	$text = get_field('myfield1'); //Replace 'your_field_name'
	if ( '' != $text ) {
    	$text = strip_shortcodes( $text );
		$text = apply_filters('the_content', $text);
    	$text = str_replace(']]>', ']]>', $text);
    	$excerpt_length = 20; // 20 words
    	$excerpt_more = apply_filters('excerpt_more', ' ' . '[...]');
    	$text = wp_trim_words( $text, $excerpt_length, $excerpt_more );
    }
	return '<div class="av-excerpt">'.apply_filters('the_excerpt', $text).'</div>';
}
add_shortcode('text_field_excerpt', 'custom_field_excerpt');

My content actu 1…

Custom Content Shortcode

[ field myfield1 ]
[ field myfield2 ]
My content actu 1…
My content actu 1 bis…
[ if field=myfield1 or field=myfield2 ]
>> CONDITIONAL NOT ALWAYS WORKING!
One field at least has data

ACF Repeater

Beaver Themer field connections

[ wpbb-acf-repeater name='galeries_repeater' ]
    [ wpbb post:acf type='text' name='titre_galerie' ]
    <img src='[ wpbb post:acf type="image" name="image_in_repeater" ]' />
[ /wpbb-acf-repeater ]

Custom Content Shortcode

[ repeater galeries_repeater ]
    [ field titre_galerie ]
[ /repeater ]
NO DATA!

ACF Date picker

Beaver Themer field connections

[ wpbb post:acf type='date_picker' name='my_test_date_picker' ]
12/09/2019

Custom Content Shortcode

[ field acf_date=my_test_date_picker ]
20190912

Bootstrap Modal

Content Grid (PowerPack)

Tout
  • Tout
  • Actu : catégorie 1
  • Actu : catégorie 2
  • Actu : sous-cat 1

Actualité 2

Nonem aut ut illatiis simus mod est volecae. Ro tem harum quis nempore cust pra dest optas acearibus ex et hario. Ut iumet ute plab inctur sus, velestrum restiscid quia sa adiciti onsequis nis Eturiatiae por sit quation cus sente volumqui iliquuntibus quid qui vid mosam autestotatur mil incillest laccuptae quidio dolo consectate doluptatio. Magnat…

Actualité 3

Nonem aut t illatiis simus mod is volecae. Ro tem harum qua nempore cust pra dest os acearibus ex and hario. Ut iumet ute plab incture sus, velestrum restiscid which has its aditi Eturiatiae por tation qua cus que volumqui iliquuntibus que qui vid mosam autestotatur millet incillest laccuptae quidio dolo consectate doluptatio. Magnat ditat…

Actualité 1

Test Nonem aut ut illatiis simus mod est volecae. Ro tem harum quis nempore cust pra dest optas acearibus ex et hario. Ut iumet ute plab inctur sus, velestrum restiscid quia sa adiciti onsequis nis Eturiatiae por sit quation cus sente volumqui iliquuntibus quid qui vid mosam autestotatur mil incillest laccuptae quidio dolo consectate doluptatio….

Advanced Posts (UABB)