• Resolved weihiluo

    (@weihiluo)


    When I use this shortcode:

    [qemcalendar month=”10″]

    the calendar displays the current month. I cannot find a way to make october show on page load. What I want is to show the current month and next month below it. I tried this.

    [qemcalendar]
    [qemcalendar month=”10″]

    What I get is two copies of September.
    The reason I would like to do this is that I schedule events two weeks in advance. In the second half of the month, you cannot see all available events without advancing the calendar.

    In a perfect world, this would work.
    [qemcalendar]
    [qemcalendar month=”next”]

    My first solution would have to be edited each month to keep looking ahead.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author fullworks

    (@fullworks)

    You are correct, there is no current way to achieve this with the shortcodes.

    It is possible to specify a month at the url level by adding ?qemmonth=10

    e.g. my domain / my event page for October ?qemmonth=10

    I actually use that on one sie where all their events are only in a single month

    It is a nice idea to have a relative month in the shortcode, but not currently planned.

    • This reply was modified 4 years, 2 months ago by fullworks.
    Thread Starter weihiluo

    (@weihiluo)

    But, you do know there is a shortcode defined here: https://fullworks.net/docs/quick-event-manager/usage-quick-event-manager/all-the-shortcodes/

    This page describes this short code:
    [qemcalendar month=”7″] Display events from the 7th month of this year

    What I was trying to report is that this shortcode is not working.
    If I put this shortcode on my page, it does not show July events, it is showing September events.

    I was doing a poor job of submitting a bug report. ??

    Plugin Author fullworks

    (@fullworks)

    lol – yes I didn’t know, I took over this plugin from the prior developer 6 months ago and I’m still discovering things.

    Thread Starter weihiluo

    (@weihiluo)

    Ah, makes sense now.

    I read the code a little and I think I know where the issue is.
    I would also like relative month display as well.
    I agree that would be a nice feature.

    So, while I am no PHP developer, if I can find a way to fix the bug and/or implement the relative month shortcode, I will submit the code to you.

    Yes code would speed things up, or a least tell me which line.

    An example without looking at the code to handle relative time is
    if (!is_int($attmonth)) {
    date(‘m’, strtotime($attmonth) );
    }

    Then you can use ‘+1 month’

    • This reply was modified 4 years, 2 months ago by llocally.
    Plugin Author fullworks

    (@fullworks)

    OK, so I tested [qemcalendar month=”7″] and it works perfectly showing July.

    So I would be intrigued to see what you think is wrong with the code, and more intrigued to understand why it doesn’t work on your site. The only think I can think of is you may have a caching plugin caching pages, maybe?

    Plugin Author fullworks

    (@fullworks)

    I have coded relative month for the next release. But still would like to know why you can get integer months working.

    Thread Starter weihiluo

    (@weihiluo)

    I wish I knew too.

    Check out https://bragg.golf

    My front page has three lines on it:

    Calendar
    [qemcalendar]
    [qemcalendar month=”7″]

    But, when the page renders, we get:
    Calendar
    <September calendar>
    <September calendar>

    Do you see what I am seeing?

    Thread Starter weihiluo

    (@weihiluo)

    Just for information, I am running Version 9.0.16 of QEM
    I am running wordpress 5.5.1
    I am running the Astra theme, version 2.5.5

    • This reply was modified 4 years, 2 months ago by weihiluo.
    Plugin Author fullworks

    (@fullworks)

    I tested 9.0.16 on WP 5.5.1 running 2020 theme without issue.
    As mentioned do you have cache plugin or running on a cached host ( like GoDaddy? )

    Plugin Author fullworks

    (@fullworks)

    Ah ha – the plot thickens – two calendars on one page

    [qemcalendar]
    [qemcalendar month=”7″]

    That would probably be the issue, I didn’t test that scenario, I will do in the morning

    Thread Starter weihiluo

    (@weihiluo)

    Maybe my explanation was poor. But if you read the first post, that was how I triggered the “bug,” if you want to call it that. I was trying to show current month and next month on the same page.

    I am trying to make it easy to see our group’s plans for the near future all in one page.
    The worst time is during the last week of the month …. you can only see a couple of days ahead without needing to press a button.

    Thread Starter weihiluo

    (@weihiluo)

    By the way, I can recreate your success. If there is one calendar on the page, then I can choose what month to display. If however, there are two calendars, then you always get two copies of the first.

    Exmaple:
    [qemcalendar month=”7″]
    [qemcalendar]
    This shows two copies of July

    Also,
    [qemcalendar month=”7″]
    [qemcalendar month=”8″]
    This shows two copies of July

    • This reply was modified 4 years, 2 months ago by weihiluo.
    Plugin Author fullworks

    (@fullworks)

    Your original post was fine, it was my quick reading of it that was lacking.

    Having looked at the code today, I have reasonable idea why, so I’ll check tomorrow and get a fix if I can in the next release.

    Plugin Author fullworks

    (@fullworks)

    Month & year on multiple calendars on the same page fixed, and also relative month / years can be used. Version 9.0.18 released

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘cannot change month displayed’ is closed to new replies.