简体   繁体   中英

Using a wordpress plugin inside a page template of a child theme

I have a child theme of twentytwelve and inside it I placed it a copy of the page.php file, renamed it and removed all the code from it, except the calls to get_header() and get_footer(). Inside this page I want to use the Wordpress Referral Lite plugin. It says to use the shortcode [referral_link], but I don't know how exactly. Could you explain please? Should I just paste that within my HTML tags, should I enclose it with php tags?

Use this: <?php echo do_shortcode('[yourshortcode]'); ?> <?php echo do_shortcode('[yourshortcode]'); ?> in the template file.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM