添加属性时,php中最高评级的产品do_shortcode不起作用
当我添加此代码时:
<?php
echo do_shortcode("[top_rated_products orderby="rand" per_page="15"]");
?>
在我的PHP页面中,它不起作用,但是当我使用此代码时,它可以使用:
<?php
echo do_shortcode("[top_rated_products ]");
?>
有什么方法可以允许使用第一个代码?
When I add this code:
<?php
echo do_shortcode("[top_rated_products orderby="rand" per_page="15"]");
?>
to my php page, it doesn't work, but it works when I use this:
<?php
echo do_shortcode("[top_rated_products ]");
?>
Is there any way to allow for the first code to be used?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须将短代码包裹在单语句中
You have to wrap the shortcode in single quotes like