The Events Calendar
[resolved] Events Hooks (6 posts)

  1. Gravuj Miklos Henrich
    Posted 1 year ago #


    I would like to create an extension to provide shortcode functionality to display specific content from the calendar at any place in a wp website.

    Examples: -> example.com/events -> all events in calender ->
    example.com/events/upcoming -> all events in list form ->
    example.com/events/{month} -> all events in a particular month ->
    example.com/events/category/event-cat -> all events in category event-cat ->
    example.com/event/event-single -> display only single event.

    Are there any hooks, filters or actions I can use them for the shortcode features?



  2. Barry Hughes
    Plugin Author

    Posted 1 year ago #

    Hi Miklós,

    There are a huge number of hooks throughout our plugin. With that said, I'm not too sure if there are any action/filter hooks that would be particularly useful in building something like you are describing (working directly with our API functions might be easier here), but you can find all of our function definitions etc in our technical docs:

    Technical Documentation

    Great to hear that you are interested in building something like this: good luck!

  3. Gravuj Miklos Henrich
    Posted 1 year ago #

    Hi Barry,

    Thank you for the answer. This is the direction I am starting on it: http://screencast.com/t/QT65pnv0X0g

    As for the single event shortcode, like [event id="xxx"]

  4. Barry Hughes
    Plugin Author

    Posted 1 year ago #

    Excellent. You may also want to check out tribe_get_events() (if you have problems retrieving things quite as you'd like when working directly with WP_Query, though it may be fine).

  5. Gravuj Miklos Henrich
    Posted 1 year ago #

    I have some troubles.


    It seems that parsing the template by url is not working on some servers where URL file-access is disabled in the server configuration.

    On the snapshot you'l see the part where I'm treating the cases of the shortcode, what template should generate the shortcode.

    I don't know how else could I use the Events Calendar templates. Can I get any small direction regarding this, please?

  6. Barry Hughes
    Plugin Author

    Posted 1 year ago #

    Yeah that's probably not the most efficient way of doing things, even supposing there were no server restrictions to worry about.

    You could check out our technical docs and see if functions like tribe_get_view() will be a help or consider building your own views.

    This is however firmly in the domain of custom development and we really do need to leave it to you to research and solve this sort of issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic