0

Hi I am using All in one event calender for my website. I want to show the upcoming events in sidebar of page without using widget(means it provides the drag and drop widget but i don't want to use that), i want to call the function of upcoming events in 'sidebar.php' and show upcoming events on page?

How can i do that?

Thanks in advance.

Baikare Sandip
  • 751
  • 1
  • 6
  • 19

1 Answers1

0

You can execute the shortcode of your plugin directly in the sidebar.php template file. Edit sidebar.php and add the following code where you want the event calendar to appear: <?php echo do_shortcode('[ai1ec view="monthly"]'); ?> You must replace the code between single quote with your desired plugin shortcode. You maybe have to play a little bit with the code, depending on the theme you use. I am ready to help if you have any problems.

Dragos Sandu
  • 664
  • 3
  • 16