WordPress.org

Ready to get started?Download WordPress

Forums

FT Calendar
[resolved] Calendar unable to display other months (3 posts)

  1. keviokevio
    Member
    Posted 2 years ago #

    I put my FT Calendar on a page via shortcode, and everything works fine, except no month other than the current month (September) can be displayed. I click on the arrows next to the month's name and nothing happens. Can you help?

    http://pencilmileageclub.com/calendar-2/

    I'm on WordPress 3.1.3.

    Thanks you

    http://wordpress.org/extend/plugins/ft-calendar/

  2. rolfb
    Member
    Posted 2 years ago #

    I see the same with WordPress 3.2.1 and FT Calendar 1.0.4.1, both with Firefox 4.0.1 and IE8.

    wordpress/wp-content/plugins/ft-calendar/classes/class-shortcodes.php:

    <a class='large-prev' ref='" . $prev_month . "' href='" . $permalink . "?type=month&date=" . $prev_month . "'>" . apply_filters( 'ftcalendar-prev-arrow', '⇐' ) . "</a>

    Changing 'large-prev' to 'large_prev' resolved the problem. I can't say I understand why. It appears that hyphens '-' are allowed in class names according to the CSS 2.1 spec, while underscores '_' are not:

    http://www.w3.org/TR/CSS2/syndata.html

    "In CSS2, selectors (element names, classes and IDs) can contain only the characters [A-Za-z0-9] and [UNICODE] characters 161 and higher, plus the hyphen (-); they cannot start with a hyphen or a digit; they can also contain escaped characters and any Unicode character as a numeric code (see next item)."

    Now, I was not able the find the class name defined in any file, so maybe the safest solution would just be to remove the reference to the class?

  3. keviokevio
    Member
    Posted 2 years ago #

    It worked! Your first suggestion anyway. I changed the hyphens in 'large-prev' and 'large-next' to underscores and the buttons worked.

    Thank you! You saved me from so much more headache!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic