问题
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