WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Grávuj Miklós Henrich
    Member
    Posted 7 months ago #

    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/

  2. Barry Hughes
    Member
    Plugin Author

    Posted 6 months 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. Grávuj Miklós Henrich
    Member
    Posted 6 months 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
    Member
    Plugin Author

    Posted 6 months 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. Grávuj Miklós Henrich
    Member
    Posted 6 months ago #

    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?

  6. Barry Hughes
    Member
    Plugin Author

    Posted 6 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags