• Resolved makyo

    (@makyo)


    I’m going to guess it somehow sees the 1 in the shortcode and gets confused. Is this a known issue with a workaround? I thought coming here I’d see someone else with the problem but I didn’t.

    I used the Shortcode Generator and it output this:

    [my_calendar above=”none” below=”none” format=”list” weekends=”true” months=”12″]

    It only shows the next single month. If I change it to anything from 1 to 9 it works splendidly, but 10, 11, 12 all break back down to 1.

    Thanks for your time and help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter makyo

    (@makyo)

    Well now I test further 10 and 11 are working. I don’t know why my site wasn’t showing them yesterday :{ maybe the template was caching weird or something…

    But knowing that 10 and 11 do work did help me troubleshoot and I think I found the issue in the plugin’s output PHP file. Correct me if I’m wrong but the line here (I think 1952) should have a <= instead of just the < :

    if ( is_numeric( $months ) && $months < 12 && $months > 0 ) {
        $show_months = absint( $months );
    }
    • This reply was modified 10 months ago by makyo.
    Plugin Author Joe Dolson

    (@joedolson)

    Thanks for following up on that! Definitely a bug; I’ll get it fixed in the next major release.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘> 9 months defaults to 1 when using shortchode’ is closed to new replies.