WordPress.org

Ready to get started?Download WordPress

Forums

Simple Events Calendar
[resolved] Events Short Code for sidebar Widget (4 posts)

  1. mdspaula
    Member
    Posted 2 years ago #

    I have the [events] code on a Page and it works fine. Is there any way to get the calendar listing to work in a sidebar Widget? (When I use the [events] short code it doesn't work - it just displays '[events]' and not the calendar listing. Am I doing something wrong?)

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

  2. Yusri Mathews
    Member
    Posted 2 years ago #

    I am also looking for this shortcode as I am facing the same problem. [events] only works on a post or page!

  3. mdspaula
    Member
    Posted 2 years ago #

    I wanted the [events] to work in a sidebar widget. So I searched for the answer at the developer's site and discovered you have to add some short code to your functions.php file. and then the [events] in the sidebar widget works.
    Add the [events] to your sidebar widget then . . .
    Add this to your functions.php file:
    <?php
    //Simple Events Calendar function to display Calendar in Text Widget Sidebar
    add_filter('widget_text', 'do_shortcode');
    ?>
    That should do the trick - it worked for me. :<)

  4. Jerry G. Rietveld
    Member
    Plugin Author

    Posted 2 years ago #

    Hi mdspaula and iammathews,

    Thanks for explaining the process for adding the Simple Events Calendar plugin to the sidebar mdspaula. I will try to add this options to the plugin so you don't have to add any code to the functions.php file anymore.

    Cheers,
    Jerry

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic