WordPress.org

Ready to get started?Download WordPress

Forums

Google Calendar Events
[resolved] Code to insert widget calendar (3 posts)

  1. made33
    Member
    Posted 1 year ago #

    I need to insert the widget calendar directly with php code, I guess is possible? Which is the code can I use?

    best regards. Martin

    http://wordpress.org/extend/plugins/google-calendar-events/

  2. Ross Hanney
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Martin,

    You can use the do_shortcode function to output a calendar with PHP, like this:

    <?php echo do_shortcode( '[google-calendar-events type="ajax"]' ); ?>
  3. made33
    Member
    Posted 1 year ago #

    Thank you for the prompt reply, it works great!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags