Exclude past events from front end

Home Forums Calendar Products Events Calendar PRO Exclude past events from front end

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #903675
    Rob Kinnear
    Participant

    Hi – I have a site that is a mixture of syandard posts and events. I’m currently using ThemePunch’s Essential Grid plugin to display both on the front end together (which works pretty well!). However, for it to work perfectly, I’d like to exclude any events that have past event dates. Is there any way I can do this for post lists on the front end globally?

    #903836
    Geoff
    Member

    Hi there, Rob! Thanks for getting in touch. By the way, I love how the site looks–nice work. ๐Ÿ™‚

     

    Great question. I do want to note first of all, though, that we are fairly limited in terms of helping out with custom development questions like this one. That said, weโ€™d love to point you in the right direction if we can.

    Honestly, I’m unfamiliar with the Essential Grid plugin and how it creates its query to fetch posts. If it allows you to modify or override its query, you will want to customize the one it uses to fetch Events posts using theย tribe_get_events() function. Here’s a handy tutorial with examples of how to use this query, including one that shows how to limit the display to only upcoming events.

    Another possibility would be to try installing a plugin that adds an expiration date to posts. I don’t have any recommendations that I’ve tested, but this one looks promising. This way, you could add an expiration date to your Events posts, which will automatically remove them on a certain date.

    I’m sorry I don’t have a concrete solution for you, but does this help answer your question? Please let me know. ๐Ÿ™‚

    Cheers!
    Geoff

    #904073
    Rob Kinnear
    Participant

    Ok – thanks for pointing me in the right direction Geoff. I’ll let you know if I find a solution!

    Cheers
    Rob

    #904234
    Geoff
    Member

    Awesome, thanks Rob! I appreciate you following up.

    I’ll go ahead and close this thread, but please feel free to hit us up with a new thread if any other questions pop up. We’d be happy to help. ๐Ÿ™‚

    Cheers!
    Geoff

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Exclude past events from front end’ is closed to new replies.