Make 'Show only the first upcoming instance of recurring events' checked as defa

Home Forums Calendar Products Events Calendar PRO Make 'Show only the first upcoming instance of recurring events' checked as defa

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #942169
    Anders
    Participant

    Hi,

    I want to give my visitors the option to decide themselves if they want the Show only the first upcoming instance of recurring events box checked or not, but I would like to set it to checked as default.
    (Now it is not checked unless you specifically check it. )

    Any help or ideas?

    (Just to be clear: Setting the option in the settings page to display only … doesn’t really work, as it removes the checkbox option from the front end. )

    Thanks
    /anders

    #942294
    Barry
    Member

    Hi Anders,

    Great question.

    If you check that particular box you’ll notice that an extra parameter is added to the URL, something like this:

    example.com/events/?tribeHideRecurrence=1

    So, one option is simply to update your navigation menu so that any links to the events page include that extra parameter (thus ensuring the checkbox is checked).

    Would that work for you?

    #942430
    Anders
    Participant

    Extra points for thinking outside of the functions box!

    I was hoping for a more “elegant” solution, but this works just fine.
    Thanks.

    #942444
    Barry
    Member

    Awesome, glad it works for you.

    I can definitely see why you might prefer a more ‘elegant’ solution, but my concern with that is maintainability (if we change how this works internally in the future – not that we have immediate plans to do so, but you never know – a coded solution could suddenly and unexpectedly fail), not to mention it would simply be a more complicated way to go and realistically beyond what we’d normally guide users through here on the forum.

    In any case, I’m happy that approach works and will close this thread – as ever, please don’t hesitate to create new threads as needed should anything else crop up 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Make 'Show only the first upcoming instance of recurring events' checked as defa’ is closed to new replies.