• bpawel

    (@bpawel)


    Hi, thanks for this great plugin. I am now using it to display some “events” (in this case very short posts) on a daily basis, so I am dripping them each day.

    I am scheduling them using ical and would love to create events ahead, but then only display today’s one and the past ones.

    I found a way to do it in a list view (I created two instances of a shortcode: one for today that has limitdays=”1″, and another one with the reverse=”true”) but the month and week views display all events.

    Would there be a way to hide the future events on other views, or use the mask for them? They would then unhide/unmask on midnight (or even at a specified time!) on the actual date.

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author room34

    (@room34)

    Hi… great question! Unfortunately no, at the moment the month and week views are deliberately designed to “extend” the defined date ranges of limitdays and pastdays so they show the full set of days within the selected month/week.

    That said, there might be some ways to make this work. Are these “events” actually WordPress posts that are being turned into an iCal feed, or are they in an external calendar app somewhere?

    If they’re in WordPress, you may want to use its ability to schedule posts instead of publishing them immediately. (If you’ve got something custom that’s generating the iCal feed, you’ll want to make sure the query is checking for post_status equal to “publish” — normally front-end queries default to that, but I’ve run into a few situations where I had to specifically include that in the query.

    Thread Starter bpawel

    (@bpawel)

    Thanks for super-prompt answer. The events are actually only in ical – since they are ultra short I didn’t want to create separate posts, and also this allows me to draft them on the go (on my mobile/ipad). So the contents is pulled from the calendar, and nothing gets pushed to the calendar feed.

    Plugin Author room34

    (@room34)

    How is the ical being generated?

    Thread Starter bpawel

    (@bpawel)

    I login to icloud, calendar, and manually create events.

    Plugin Author room34

    (@room34)

    Ah, OK… thanks… that was what I was wondering, whether this was coming from an external source or if it was something you were building custom.

    Back to the original question: yes, at this point the only option for just showing past events is list view.

    Thread Starter bpawel

    (@bpawel)

    Ok, thanks. Would the masonry and other pro views behave like a list in this context, or similarly to the month / week view?

    Plugin Author room34

    (@room34)

    We’re not really supposed to get into matters of paid plugins in these forums, but briefly, yes the masonry view is based on list view, so it should work the same. (That said, it was just introduced last week and hasn’t been thoroughly tested for some of these edge use cases.) All of the other views use the same date range logic as month and week view.

    Thread Starter bpawel

    (@bpawel)

    Thank you, I take responsibility for this question :). Good to know!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to hide future events?’ is closed to new replies.