How to print shortcode title & category from shortcode in wordpress
Comments
-
Add this code in
functions.php
file :$atts = shortcode_atts( array( 'title' => null, 'category_id' => null ), $atts);
and after that you can use the given code for print the value where you want :
echo $atts['title'];
Howdy, Stranger!