WordPress.org

Ready to get started?Download WordPress

Forums

Google Calendar Events
[resolved] How to use shortcode in google calendar events (13 posts)

  1. wiltondigital
    Member
    Posted 2 years ago #

    I am trying to insert a grid of the calendar in a post using the shortcode. When I view the post I just see the shortcode syntax, not the calendar. Is there a trick to this? The calendar feed is working, as I see the upcoming events in the widget in the sidebar

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

  2. Ross Hanney
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hello,

    That's odd. It doesn't sound like you're doing anything wrong.

    Any chance you could provide a link to your post, so I can take a further look?

    Ross.

  3. wiltondigital
    Member
    Posted 2 years ago #

    Thanks for the reply Ross, but unfortunately the server is on my inside home network. I am developing a replacement web site for my local church, and can't upload it to the real server yet.

    I am running WP on WAMP. It just seems so odd that the event list works, but the grid does not. I assume I just put the shortcode in the body of the post. No other WP things I have to set (total newbie to WP here).

    Thanks again.

  4. Ross Hanney
    Member
    Plugin Contributor

    Posted 2 years ago #

    Ah, I see.

    Just putting the shortcode in the post body should do the trick. Could you post the exact shortcode you're using (with parameters etc)?

    It should be something like this:

    [google-calendar-events type="grid" title="Events on"]

    Ross.

  5. wiltondigital
    Member
    Posted 2 years ago #

    Here is a link to a screen shot of the edit page.

  6. Ross Hanney
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hmm, puzzling!

    Which theme are you using? Also, what other plugins do you have installed?

    Ross.

  7. wiltondigital
    Member
    Posted 2 years ago #

    Oh boy, this too embarrassing. Problem is fixed. All my error...I had downloaded two similar sounding google calendar widgets and had activated the wrong one. Sorry to take your time! Great tool though!

  8. Ross Hanney
    Member
    Plugin Contributor

    Posted 2 years ago #

    Oh! No worries, I'm glad you figured it out! :)

    Ross.

  9. kaotik
    Member
    Posted 2 years ago #

    Is there a way to hard code it into a template?

  10. Ross Hanney
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi Kaotik,

    Yes, via the do_shortcode function, which you'd use something like this:

    <?php echo do_shortcode( '[google-calendar-events id="1"]' ); ?>

    Ross.

  11. kaotik
    Member
    Posted 2 years ago #

    Great, thanks.

  12. iamnewtowordpress
    Member
    Posted 2 years ago #

    I am only new to WordPress. I want to use google calendar events. My theme is bbPress (Twenty Ten). http://www.freedomlodge1461.org/calendar/ is my link. The calendar is showing but not what my google calendar is showing. Please help. Thanks :)

  13. iamnewtowordpress
    Member
    Posted 2 years ago #

    I got it! Thanks anyway :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic