Insert "featured" function has ISSUES with shortcodes in the remote fields

The shortcode issue does not appear here in this BB page .. The exact same html coding in page Featured articles does not work ... ???? WHY ????
Is this because the BB insert post function below clears the way by triggering a precalculation of the shortcodes?

Call using a custom shortcode [ featured id='35400' my_field='featured'] that selects a post id and returns the contents of the custom field "featured" from that post. (The custom code itself is in the functions.php of the child theme)
//  Use  filling the '' with the correct values for you
function gg_get_field($attr){
    $args = shortcode_atts( array(     
            'id' => '1',
            'my_field' => 'featured'
        ), $attr );
 
	return get_field($args['my_field'], $args['id']);
}
add_shortcode( 'featured' , 'gg_get_field' );

The ACF field "featured" from the PostArticle1 | id= 35400, and Article2 | id= 35406,designed with both Htmland Shortcodes,is inserted below:
The ACF field "featured" from the PostArticle1 | id= 35400, designed with both Htmland Shortcodes,is inserted below:
The ACF field "featured" from the PostArticle2 | id= 35406, designed with both Htmland Shortcodes,is inserted below:

"Insert Posts" feature in Beaver Builder page layout: NO ISSUES with shortcodes in the fields

article1 | 35400
Field ‹Featured›
Field ‹Excerpt›
Using html only Shows the expected result 20210729: Article1: id= 35400
Title, text, id, image, are called from the field "Featured" in Article1 and all render correctly.


Using shortcode Cardlet1:

Article1 ACF field ▷ Img1

ACF Text field for Article1 (name=’acf_wys2)
SUCCESS! > The shortcode picks up the content correctly in case this text shows up. It works when grid solutions perform the call.

article2 | 35406
Field ‹Featured›


Field ‹Excerpt›
Using html only Shows the expected result: Article2: id= 35406
Title, text, id, image, are called from the field "Featured" in Article1 and all render correctly.


Using shortcodes: acf_cardlet1

 Article 2    |   article2 Edit post - id:35406
logo
img
img1
img2
img3

  The images are defined in the page's ACF custom fields | Sourced from: "article2" | ID: "35406"

ACF Text field for Article2 (name=’acf_wys2)
SUCCESS! > The shortcode picks up the content correctly in case this text shows up. It works when grid solutions perform the call.


Edit sc_1Popup sc_1
35406 ||||| id=35406 |||||
article5 | 35703
Field ‹Featured›


  • Post category:Article / BB
  • Post author: