Added below code to your function.php file of your active child theme (or theme).
add_shortcode('display_shortcode','my_shortcode'); function my_shortcode() { echo "hello world"; // write here your html code what ever you display }
- Added below code in your php file where you display this shortcode:
or
[display_shortcode]
You must be logged in to post a comment.