Hook for Getting Calendar Events?

Home Forums Calendar Products Events Calendar PRO Hook for Getting Calendar Events?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #94737
    materdeiknights
    Participant

    I have a custom post type that has a “date” field on it, and I want to get these custom post types to show up on the calendar and list views (in addition to the normal “Event” post types). How is the best way to modify the plugin to allow me to place links to my custom post type posts on the dates in the calendar?

    Thanks!

    #95296
    Barry
    Member

    Hi @materdeiknights!

    I’m afraid we can’t help a great deal with customization requests like this one and a good working knowledge of WordPress development is going to be necessary for this sort of task.

    Essentially though some of our own query logic runs during WordPress’s pre_get_posts action. Once this has completed our own tribe_events_pre_get_posts action fires – so you have a choice of using either of those hooks to further tweak things before the query runs (the first being more general purpose and the second specific to event-related queries).

    In this case for instance you might want to modfy the post_type query var. This is just one possible avenue of course and there would be other ways to approach this and indeed other details to iron out if you choose this method. However, we’ll really need to leave the rest to you.

    Good luck!

    #100971
    Barry
    Member

    I’ll go ahead and close this as it’s been a few weeks now, but if we can help with anything else please do go ahead and create a new thread. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hook for Getting Calendar Events?’ is closed to new replies.