• Hi,

    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?

    Thanks,
    Miklós

    http://wordpress.org/plugins/the-events-calendar/

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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!

    Thread Starter Gravuj Miklos Henrich

    (@henrichro)

    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”]

    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).

    Thread Starter Gravuj Miklos Henrich

    (@henrichro)

    I have some troubles.

    http://i.imgur.com/cNM6dAI.png

    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?

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Events Hooks’ is closed to new replies.