All-in-One Event Calendar
[resolved] How to manually insert the agenda widget with php ? (7 posts)

  1. knijia
    Posted 4 years ago #

    i'd like to insert the agenda widget manually, not with wordpress widget's function. Is it possible ?
    Thanks !


  2. amax2222
    Posted 4 years ago #

    In theory you should be able to do the following:

    echo do_shortcode('[ai1ec view="agenda"]');

  3. knijia
    Posted 4 years ago #

    thks for your answer amax2222, i did not think about the do_shortcode. Unfortunatelly, i can't get it to work. Do i need to call something else before the <?php echo do_shortcode('[ai1ec view="agenda"]'); ?> ? Anyway it's just what i was looking for, a simple way to manually add the widget. Hope i'm just missing something ...

  4. knijia
    Posted 4 years ago #

    Has anybody succeded to display the All-in-One Event Calendar widget with echo do_shortcode('[ai1ec view="agenda"]'); ?
    Or is there another way to do this ?

  5. Lori
    Posted 4 years ago #

    I am having this same problem. I need to use a variable as the shortcode argument, but could not even get do_shortcode() to work using the same exact shortcode that works when entered into a post.

  6. Richard
    Posted 4 years ago #

    Hi everyone,

    Unfortunately the do_shortcode function is not yet a feature, however we plan to add it in a future release. In the meantime, you can insert shortcodes in blog posts. Here is a list of the shortcodes:


  7. knijia
    Posted 4 years ago #

    Good news ! Thanks for the link.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • All-in-One Event Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.