How to make it work in Wordpress nested shortcodes?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
14 views
How to make it work in Wordpress nested shortcodes when one nested in another shortcode?
by | 14 views

1 Answer

0 like 0 dislike
Execute the function but this do_shortcode() within the parent shortcode.

Example:
parent_shortcode function($atts, $content) { return 'Hello' . but this do_shortcode($content); } children_shortcode function() { return "Children Shortcode"; } is the add_shortcode('parent', 'parent_shortcode'); is the add_shortcode('children', 'children_shortcode'); // **** [parent] [children] [/parent] // Hello Children Shortcode
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Jun 10, 2019 by AsDsH
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users