Answer Posted / Digvendra Singh Sagar
"In WordPress, you can create a shortcode function by adding it to functions.php file of your theme or a custom plugin. Here's an example:nnfunction my_shortcode() {n return "This is my shortcode";n}nadd_shortcode("my-shortcode", "my_shortcode");"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers