// function that runs when shortcode is calledfunctionwpb_demo_shortcode() {
// Things that you want to do. $message = 'Hello world!';
// Output needs to be returnreturn$message;
}
// register shortcode
add_shortcode('greeting', 'wpb_demo_shortcode');