Support » Plugins » Hacks » Calendar widget: show more than this month

  • Resolved marcelgo

    (@marcelgo)


    Hi all,

    is there a (maybe even simple) way to modify the Calendar widget so it displays future months?

    I just need a simple calendar so customers can check dates that exceed the current month when they wanna check rooms on this site http://gartenbijoux.ch/wp/bed-breakfast

    Any alternatives ?

    Thanks
    Marcel

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator bcworkz

    (@bcworkz)

    That widget will not work that well because it will only show months that have published posts, which is impossible for future dates. Altering it is not that simple because it uses get_calendar(), a core function that cannot be modified.

    If you just want to display a calendar for easy reference, use jQuery UI datepicker. It can be displayed inline on your sidebar template. The library is part of the WP distribution, just enqueue it and follow this example

    Thanks bcworkz!

    Well, I never thought about that – might be a good option. But your link with the example is not working… 😉

    Moderator bcworkz

    (@bcworkz)

    Err, sorry about that, the href seems to have disappeared :/

    This should do it even if the link doesn’t:
    http://jqueryui.com/datepicker/#inline

    That widget will not work that well because it will only show months that have published posts, which is impossible for future dates. Altering it is not that simple because it uses get_calendar(), a core function that cannot be modified.

    Ok, works now. Thanks guys

    By the way, this was also very helpful:
    http://wordpress.org/support/topic/how-to-add-jquery-datepicker?replies=13

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Calendar widget: show more than this month’ is closed to new replies.