BMI Calculator function bmi_calculator_shortcode() { ob_start(); ?> BMI (Body Mass Index) Calculator Height (cm) Weight (kg) Calculate BMI <?php return ob_get_clean(); } add_shortcode(‘bmi_calculator’, ‘bmi_calculator_shortcode’);