My Calendar FAQ

Need help getting started with My Calendar? Please Buy the User’s Guide!

  1. I just upgraded, and now my calendar is blank.
  2. I’d like to display the event title with the date in List format.
  3. How can I let registered users add events?
  4. Can I open external links in a new window?
  5. The event details box disappears under my sidebar!
  6. Why are old events in my upcoming events widget?
  7. I don’t want categories in my widgets.
  8. My theme isn’t widget-ready. Can I place a calendar in my template files?
  9. Can I display the calendar using a different day as the first day of the week?
  10. I can’t see any events on my calendar, but they appear in the admin!
  11. My RSS, iCal, or Print links give me a 404? What’s up?
  12. The event pop-up boxes won’t close.
  13. I’m using your widgets, but I don’t want the widget showing up on my events page.
  1. I just upgraded, and now my calendar is blank.

    Two likely problems: first, if you have a lot of events, the database migration that’s part of My Calendar version 2.0 may not have been able to complete. On the settings page, check the box ‘re-generate event occurrences table’ and update your settings.

    Second is an out-of-date cache. To verify this, you can either clear the cache (on the My Calendar settings page), or you can disable the cache. If you still aren’t seeing any of your events, send a support request!

  2. I’d like to display the event title with the date in List format.
    You can’t, per se. This is a very frequently asked question, and it comes from a misunderstanding of what the list format does. The list format is a list of dates, not a list of events. The event title can’t be displayed with the dates because the plug-in doesn’t know which event to show a title for: the date may contain multiple events. However, in version 1.9 and above, there is an option to show the title of the first event of the day and an indicator of the number of events in list mode — you can find this on the settings page.
  3. How can I let registered users add events?
    The easiest way is to purchase the My Calendar: Submissions extension, which is designed to let users add events from the front-end. If your users have access to the back-end of your site, you can just have them log-in to submit events:

    Add this code to your theme where you want the link to be:

    <?php if ( !is_user_logged_in() ) { ?>
    <a href="<?php echo wp_login_url( get_admin_url().'admin.php?page=my-calendar' ); ?>">Log in to add events</a>
    <?php } else { ?>
    <a href="&g\lt;?php echo get_admin_url().'admin.php?page=my-calendar'; ?>Add an event</a>
    <?php } ?>
    

  4. Can I open external links in a new window?
    All external links, including links to maps, use the class ‘external.’ You can write a simple jQuery statement to open those links in new tabs if you wish. This will not be added to the core code at any time. You can add this code:

      $(document).on("click", ".external",
             function(e){
             $(this).attr('target','_blank');
      });
    

    Add this just before the closing “});” in the Calendar JavaScript (Dashboard > My Calendar > Script Editor).

    Also, give a consideration to not doing this, for accessibility and usability reasons – here’s some reading: Opening links in a new window, Avoid pop-ups and links opening in new windows

  5. The event details box disappears under my sidebar.
    There’s about a 99% probability that this is because the content container on your web site has the CSS direction overflow: hidden; set. You can usually remove this direction without any damage to your web site, although I can’t promise that it won’t have consequences. The reason it exists is frequently as a bug fix for IE6 — to protect you from what can happen in IE if you add an object (like an image) which is wider than your content area to a blog post. Alternately, you can make a minor CSS change to move the event details box to pop up in the center of the calendar:

    Change this:

    #jd-calendar .calendar-event .details, #jd-calendar .calendar-events {
    width:50%;
    }
    

    To this:

    #jd-calendar .calendar-event .details, #jd-calendar .calendar-events {
    left: 15%;
    width:70%;
    }
    

    Only the changed items are noted.

  6. Why are old events in my upcoming events widget?
    The upcoming events widget has a number of options, including the choice to display any number of past or future events. The default settings allow for both, so if you only want future events to be shown you’ll need to change the settings.
  7. I don’t want to show categories in my widgets.
    The widgets both use templates to determine what they’ll display. You can edit those templates to show whatever you need within your list of events. The available template tags can be found on the plugin’s Help page. You can wrap these template tags in whatever HTML you want to get your desired output.
  8. My theme isn’t widget-ready. How can I place a calendar in my template?
    Use <php? echo do_shortcode('[my_calendar]'); ?> to add My Calendar to your templates. You can use your shortcodes normally within the do_shortcode function. As a note, be careful about nesting of quotes: if you’re delimiting the function argument with single quotes, as above, be sure to use double quotes to delimit shortcode attributes.
  9. Can I display the calendar using a different day as the first day of the week?
    The calendar uses either Sunday or Monday as the first day of the week, using the general settings for WordPress. You can find those settings at Admin > Settings > General > Week starts on.
  10. I can’t see any events on my calendar, although they appear in the admin!
    There are a couple of possibilities here. First, if you have approval options enabled you may be in the situation that your calendar events have been saved but not approved for publication. Approval options are configured in My Calendar > Settings > Calendar Management Settings. A second possibility is that your events are either in a category marked as “Private”, and only visible to logged-in users, or they have not been assigned to a category. In the former case, check whether your categories are marked private in the Categories Manager. In the latter, make sure you’ve created at least one category in the Categories Manager.
  11. My RSS. iCal and/or Print links give me a 404 error.
    WordPress usually needs to have its permalink settings refreshed when a new permalink format is introduced. You should go to your permalink settings page and re-save your permalink format. No need to change anything, just a quick re-save. You may also need to clear your browser cache in many cases. (This isn’t related to permalink formats, but due to aggressive browser caching.)
  12. The event pop-up boxes won’t close.
    The most common cause of this problem is if your theme is missing <?php wp_footer(); ?> in the theme file footer.php. Add the function call right before the closing </body> element to fix this.

    It’s also common for themes to replace the default version of jQuery shipped with WordPress with their own version – this can cause problems, and may require you to either edit your theme or the My Calendar scripts so that they will work with your theme.

    If you’re using the Atahualpa theme, this has caused problems in the past. There are two common suggestions: 1) Turn off CSS compression 2) install this patch for Atahualpa

    As of version 1.9.0, if you visit the My Calendar Behavior Editor page, My Calendar will notify you if your current behavior scripts are not a match for the current released version, and will offer you a view to compare your scripts against the current version.

  13. I’m using your widgets, but I don’t want the widget showing up on my events page.
    My Calendar doesn’t handle this directly, but you can use a widget control plugin to handle it – there are a couple I know of: Widget Context or Widget Wrangler. I haven’t used either of them myself, but others have used them successfully for this purpose.

Need help getting started with My Calendar? Buy the User’s Guide!

Return to Top