Need help : I made a cutom shortcode in wordpress plugin and pasted that code in Add new Page like this.
[test-shortcode attr=test]
i have defined attribute called attr and given its value "test" in the page. Now i made a custom Page template for that page.
My Question is how can i get the value of "attr" attribute in that new template ?
Is there any function exists or some technique to do this?
Thanks Waiting for answer
use below code in your custom page
echo do_shortcode( '[gallery]' );
Hope this helps. Cheers;)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.