如何插入日历插件? [英] How can I insert the Calendar plugins?
问题描述
我已经安装了 WordPress 日历插件,并且我想(在页面的某个点)添加这个插件,而不是将默认日历添加到小部件并将这个小部件调用到页面(例如 <?php dynamic_sidebar('secondary-widget-area'); ?>
).
I have installed the WordPress Calendar plugins, and I'd like (in some point of the page) add this plugins, without add the default Calendar to a widget and call this widget to the page (such as <?php dynamic_sidebar( 'secondary-widget-area' ); ?>
).
我的意思是,喜欢将 SidebarEventsList()
用于 WP 事件日历插件
I mean, like to use SidebarEventsList()
for the WP Events Calendar Plugins
我该怎么做?我需要调用哪个方法?
How can I do it? Which method I need to call?
尝试过
<? {CALENDAR} ?>
正如 readme.txt 所说,但我收到一个错误 解析错误:语法错误,意外的 '}'
as the readme.txt says, but I get an error Parse error: syntax error, unexpected '}'
推荐答案
在任何地方使用 shortcodes希望你这样做:
To use shortcodes where ever you want you do this:
其中 CALENDAR
是您的简码.只需像在 wp-admin 中一样在此处添加短代码即可.
也允许使用属性.
Where CALENDAR
is your shortcode. Just add the shortcode in here like you would in the wp-admin.
Attributes are also allowed.
这篇关于如何插入日历插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!