WordPress.org

Forums

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

  1. knijia
    Member
    Posted 3 years ago #

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

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

  2. amax2222
    Member
    Posted 3 years ago #

    In theory you should be able to do the following:

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

  3. knijia
    Member
    Posted 3 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
    Member
    Posted 3 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
    Member
    Posted 3 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
    Member
    Posted 3 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:

    http://help.then.ly/customer/portal/articles/530440-what-shortcodes-are-available-

  7. knijia
    Member
    Posted 3 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

Tags

No tags yet.