plugins - 简码在特定插件中不起作用
问题描述
短代码:[wpdts-weekday]
我想从插件(WP 日期和时间简码)添加一个简码:[wpdts-weekday] 到另一个插件(浮动菜单灯),但它不起作用。见图片。
我可以在functions.php中添加一个函数来启用对浮动菜单灯插件的短代码支持,或者在插件文件夹本身中添加一些代码吗?
<?php
/*--------------------------------------------------------------*/
/* Theme Functions Here */
/*--------------------------------------------------------------*/
//---Theme Setup Options - Functions and Hooks
include('includes/theme-setup.php');
//---Adds Shortcodes
include('includes/theme-shortcodes.php');
//---Add Widgets
include('includes/theme-widgets.php');
/*--------------------------------------------------------------*/
/* Your Functions Below */
/*--------------------------------------------------------------*/
add_filter('the_title', 'do_shortcode');
add_filter('widget_title', 'do_shortcode');
?>
作为旁注,WP Date and Time Shortcode-plugin 可以在网站的其他任何地方使用。
解决方案
推荐阅读
- java - 如何教 Apache CXF JAX-WS 客户端使用的 JAXB 在无类型属性中解组 {http://microsoft.com/wsdl/types/}guid 值?
- elasticsearch - 如何将默认 @timestamp 添加到我的弹性搜索数据中
- ios - 存在分页时如何在 tableview 中使用 sectionIndexTitles
- c - 使用 C 创建仅存储矩阵的行和列索引的稀疏矩阵
- amazon-web-services - 如何添加 CloudFront 作为 lambda 函数的触发器?
- azure-active-directory - AADSTS50011 - 请求中指定的回复 url 与为应用程序配置的回复 url 不匹配
- typescript - 告诉 React Native 使用 App.tsx 而不是 App.js
- python - 如何通过失败的测试套件运行(junit.xml 解析)?
- node.js - 在没有前端的aws节点服务器中将html转换为图像
- redux-saga - Redux Saga:登录按钮的加载指示器