• Resolved filipfek

    (@filipfek)


    Hi!

    I am currently working with The Events Calendar and have successfully created a custom taxonomy for Tribe Events using the following code:

    function register_event_type_taxonomy() {
    register_taxonomy(
    'event_type',
    'tribe_events',
    array(
    'label' => 'Rodzaj wydarzenia',
    'rewrite' => array('slug' => 'type'),
    'hierarchical' => true,
    'show_admin_column' => true,
    )
    );
    }
    add_action('init', 'register_event_type_taxonomy');

    My question is whether it is possible to easily display a calendar view that filters events based on this custom taxonomy? Specifically, I would like to open a calendar showing events assigned to a certain taxonomy term.

    I would like this taxonomy to work like a category or tags, i.e. a url like /events/category/ -> /events/my_taxonomy/ would be available, and in addition, that I could open an RSS feed:

    /events/category/…/feed -> /events/my_taxonomy/feed

    It is possible? in the free version of The Events Calendar, or would I need to upgrade to the Pro version to achieve this?

    Thanks! ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support tristan083

    (@tristan083)

    Hi @filipfek ,

    Thank you for reaching out.

    What you’re trying to accomplish here falls in the line of code customization.

    While this is not something we discourage. This is; however, something that would require extensive knowledge in WordPress/web programming and we, the support team, is not equipped with such command. — Please see our?scope of support?page.

    If you are comfortable handling (or writing) code, a good place to start in finding documentation of our code functions would be our?DevDocs: and our?themer’s guide.

    To answer your question, I’m afraid it’s not possible to display events with your custom taxonomy (similar to category or tags) without further customizing the code base. This holds true for both The Events Calendar and the Events Calendar Pro premium add-on plugin.

    Thread Starter filipfek

    (@filipfek)

    Thanks!

    ok, I understand, perhaps it will be too difficult for me unfortunately…

    Maybe I’ll ask it another way and you’ll tell me if I’m able to achieve this, even assuming I buy the Pro version, which I am able to do

    I post information about general civil engineering events on my site. I use categories because of the scope, e.g. Achitecture, Construction, etc. I use tags as a link to a software program. However, I have to divide my events into two types – events and trainings. I just wanted to use WP Taxonomy to divide into events and trainings. Am I able to achieve this another way?

    That is, as if I needed two category splits. On the one hand I would like to be able to easily display all trainings, on the other hand by selecting a native category such as Architecture I am able to display all events and trainings.

    Perhaps, instead of using WP taxonomy, I can create a custom field for Events Calendar? I would like to be able to open the calendar as url /events and /trainings with RSS feed available ??

    I don’t need a detailed solution, just hints and direction (articles) on how best to do it ??

    Thread Starter filipfek

    (@filipfek)

    The easiest way, maybe I could just use a series on it? ??

    https://theeventscalendar.com/knowledgebase/event-series/

    Plugin Support tristan083

    (@tristan083)

    Hi @filipfek ,

    Thank you for your message and the clarification of what you’re trying to accomplish.

    Based on your requirement, I would say it’s probably best to “concatenate” your “event type” to your event category (i.e., architecture-trainings, architecture-events, construction-trainings, construction-events). This way you can access events by category like /events/category/architecture-trainings or /events/category/architecture-events.

    Thread Starter filipfek

    (@filipfek)

    Hi!

    thanks for the suggestion. However, I need a category such as Archiecture, when enabled both events and trainings will be visible. I would not want to divide the category into two.

    Plugin Support tristan083

    (@tristan083)

    Hi @filipfek ,

    Thank you for your message and the clarification.

    In that case, then perhaps a tiered event category structure would work for you — something like this: https://go.screenpal.com/watch/cTebQnninp8. This way, when the parent “Architecture” is enabled, all events in each child categories will be visible.

    Thread Starter filipfek

    (@filipfek)

    But I also need to filter all events and all trainings – as if it needs two parameters category ?? I can’t use the category and sub-category functions for this, no matter which direction. That’s why I considered a new taxonomy parameter, but it’s quite tedious. Maybe my own additional field but Events Calendar?

    Can I create my own custom-field that would work, for example, like the Venue attribute? I.e. that I can open a calendar page for my custom-field (just like a Venue page)? Maybe custom-field setup will be easier than WP taxonomy?

    Plugin Support tristan083

    (@tristan083)

    Hi @filipfek ,

    Thank you for your message and further clarification.

    The Events Calendar Pro premium add-on plugin ships with “custom fields” functionality called, Additional Fields (see Creating Additional Fields). When used along with the Filter Bar premium add-on plugin, which has the appended URL feature, you can configure a “link” like https://your-domain.site/events/list/?tribe__ecp_custom_5[0]=Training (where tribe_ecp_custom_5[0] is the additional field) in order to display a pre-filtered events archive (or calendar).

    Plugin Support Darian

    (@d0153)

    Hi there,

    It seems like it has been some time since we received a response from you, therefore, I will consider this matter as resolved. If you require any further assistance, please do not hesitate to start a new thread.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.