我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Wordpress do_shortcode()不起作用

I want slider on the shop page in the woocommerce product page on top i am adding the do_shortcode() but not working when i am using that shortcode in the post this is working good but in template not working as well i use apply_filters() but not working.i try both but not working ?

 <?php echo apply_filters('the_content','[layerslider id="5"]'); ?>
<?php echo do_shortcode('[layerslider id="5"]');?>

近期文章

  • Laravel在localhost上做得不好
  • wordpress管理中的纯文本(HTML)
  • 在mysqli中添加所有重复值
  • Codeigniter会话超时消息
  • Wordpress - 将php对象传递给新页面[关闭]
  • Laravel使用原始字符串创建表
  • 如何从mysql实现或切换到PDO [关闭]
  • 搜索标签并按排名排序
  • Markerclusterer - 群集标记+自定义图标
  • Json解码不工作//不打印[关闭]
  • 使用mysql fetch行发出检索值
  • 检查PHP变量是否为NULL
  • 在胡子中的数组内渲染php数组
  • 使用条件Laravel验证用户
  • 输入字符串以下划线的形式分隔
  • 用户如何在phpfox中登录自定义组
  • Highcharts使用烛台,音量和MACD
  • 如何共享客户端计算机的文件夹
  • 如何将数据从一个表插入另一个表?
  • 如何手动将POST数据输入浏览器

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华