Shortcode arguments to another shortcode
You could pass the variable via a global but it would be neater to trap it in a static variable: function track_acc_id($new_id = false) { static $id; if (!empty($new_id)) { $id = $new_id; } return $id; } //This is the accordion container function accordionGroup( $atts, $content = null ) { extract(shortcode_atts(array( ‘id_container’ => ”, ), … Read more