WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Calendar widget: show more than this month (6 posts)

  1. marcelgo
    Member
    Posted 8 months ago #

    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

  2. bcworkz
    Member
    Posted 8 months ago #

    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

  3. marcelgo
    Member
    Posted 8 months ago #

    Thanks bcworkz!

    Well, I never thought about that - might be a good option. But your link with the example is not working... ;)

  4. bcworkz
    Member
    Posted 8 months ago #

    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

  5. manojrohtela
    Member
    Posted 8 months ago #

    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.

  6. marcelgo
    Member
    Posted 8 months ago #

    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

Reply

You must log in to post.

About this Topic