do_shortcode with parameters code example
Example 1: do_shortcode
echo do_shortcode('[name_of_shortcode]');
Example 2: with variable
$childrens = do_shortcode( '[products ids="'. $string . '"]' );
echo do_shortcode('[name_of_shortcode]');
$childrens = do_shortcode( '[products ids="'. $string . '"]' );