How can I insert the Calendar plugins?

柔情痞子 提交于 2020-01-16 19:21:12

问题


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' ); ?>).

I mean, like to use SidebarEventsList() for the WP Events Calendar Plugins

How can I do it? Which method I need to call?

Tried with

<? {CALENDAR} ?>

as the readme.txt says, but I get an error Parse error: syntax error, unexpected '}'


回答1:


To use shortcodes where ever you want you do this:

Where CALENDAR is your shortcode. Just add the shortcode in here like you would in the wp-admin.
Attributes are also allowed.



来源:https://stackoverflow.com/questions/7671952/how-can-i-insert-the-calendar-plugins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!