You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function demo_shortcode() {
// Things that you want to do.
$message = 'Hello world!';
// Output needs to be return
return $message;
}
// register shortcode
add_shortcode('greeting', 'demo_shortcode');
Describe the bug
In block-templates
[greeting]
Displays [greeting] instead of "Hello World"
To reproduce
Steps to reproduce the behavior:
app/public/wp-content/themes/theme-experiments/parisienne/block-templates/index.html
[greeting]
Expected behavior
I see "Hello World" from the post, and [greeting] from the block-template
Additional context
The text was updated successfully, but these errors were encountered: