Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 211 的子主题,我在其中放置了 page.php 文件的副本,将其重命名并从中删除了所有代码,除了对 get_header() 和 get_footer() 的调用。在这个页面中,我想使用 Wordpress Referral Lite 插件。它说要使用简码 [referral_link],但我不知道具体如何。你能解释一下吗?我应该把它粘贴到我的 HTML 标签中,我应该用 php 标签括起来吗?
使用这个:<?php echo do_shortcode('[yourshortcode]'); ?>在模板文件中。
<?php echo do_shortcode('[yourshortcode]'); ?>