Organisers – categories + shown on map

Home Forums Calendar Products Events Calendar PRO Organisers – categories + shown on map

  • This topic has 14 replies, 2 voices, and was last updated 7 years, 8 months ago by claireclairelobel.com.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1586324

    Hi
    I’m hoping you can help with a couple of things relating to organisers.

    I need to include a directory of organisers on a site. Events will be shown on a different page. I have found the shortcode to display a list of organisers, but I want to know if there is any way to show organisers on a map view (without events)?

    I also need to group organisers by regions around the world and display them in separate lists. For example, a list or organisers in Europe, a list of organisers in America, etc. I know that this can be done by adding the organiser IDs that I need to display into the shortcode, but this will be a bit fiddly for my client to use when new organisers are added. Is there any way to assign categories to organisers?

    Lastly, I tried adding the code at the top of this tutorial https://theeventscalendar.com/knowledgebase/make-links-event-go-straight-event-website/ into functions.php but it broke the site. I’ve removed it now. I can’t see any issue in the php and I did remove the opening tag. Do you have any ideas why?

    I have pasted the site URL below but the site is currently hidden behind a coming soon page.

    Thank you in advance for any help

    Claire

    #1586336

    …adding to above:
    If I add a shortcode, for example [tribe_events view=”list” category=”north-america”] on a page called ‘North America’ to display a list view of events in category “North America’ it works great. However. if the user then changes the view in the page, for example to ‘Map’ it then displays ALL events on the map, not just events in North America. Is there a way to restrict all view types on a page using a shortcode to display just one category no matter which view is selected?

    #1587568
    Andras
    Keymaster

    Hello Claire,

    Thanks for going Pro and welcome to our help desk!

    Great questions you gave us. Let me answer them for you.

    any way to show organisers on a map view (without events)

    This is not possible out of the box. The organisers do not have an address associated to them, so they would need to be retrieved from the events themselves, which makes it quite a complex task.

    Is there any way to assign categories to organisers?

    Unfortunately this is also not possible out of the box. With some custom development you can create taxonomies (categories, tags) for the organizers and the venues as well.

    These 2 articles can help you get started on this:

    I tried adding the code at the top of this tutorial

    There are more codes in that tutorial. I tried copying the first one to the end of my functions.php file and it worked.

    [code language=”php”]
    /*
    * This changes the event link to the event website URL if that is set.
    * NOTE: Comment out the add_filter() line to disable this function.
    */
    function tribe_set_link_website ( $link, $postId ) {
    $website_url = tribe_get_event_website_url( $postId );
    // Only swaps link if set
    if ( !empty( $website_url ) ) {
    $link = $website_url;
    }
    return $link;
    }
    add_filter( ‘tribe_get_event_link’, ‘tribe_set_link_website’, 100, 2 );
    [/code]

    Not sure what could have been the issue. The functions.php file needs to open with “<?php” and all code has to go after that. If the file already exists for your theme, then it is usually already like that. Best is if you copy that snippet at the end and make sure that there is no closing “?>” tag before it.

    if the user then changes the view in the page, for example to ‘Map’ it then displays ALL events on the map

    That sounds unusual. Please give me some time to check that and I’ll get back to you.

    Cheers,
    Andras

     

    #1587610

    Hi Andras

    Thank you very much for your reply and for the help.
    I’ve had a look at the tutorials for adding a taxonomy and I’ll see if I can work out how to use it to add categories to organisers.

    Re the php to change the event link to the event website URL if that is set, I did paste this at the end of the functions.php file. The open tag “<?php” was at the very top and no closing tag. I’ll try it again but I also cannot see anything wrong with the code. Maybe it’s conflicting with something.

    I look forward to hearing if you find any answers about restricting views to a category even when the user changes the view.

    Thank you
    Claire

    #1587939
    Andras
    Keymaster

    Hi Claire,

    I just tested the view change using a shortcode with a category filter.

    [code language=”php”]
    [tribe_events view="list" category="cisco"]
    [/code]

    It worked properly even after changing views a couple of times. Not sure what could be the issue.

    Can you share with me a URL where this doesn’t work, so I can take a look?

    Andras

    #1587941
    Andras
    Keymaster

    Oh, by the way, we have just launched our next maintenance release with a bunch of bugfixes, some in connection with the shortcodes.

    After creating a backup of your site (files and database) please update your plugins and let me know if the issue is still there.

    Cheers,
    Andras

    #1588061

    This reply is private.

    #1588453
    Andras
    Keymaster

    This reply is private.

    #1588613

    Thanks András
    I’ll try testing the view again. Worst case, I can set it to list view and hide the bar.

    Re the php braking the site, I just get a white page when I view the site. No error message.

    #1588628

    This reply is private.

    #1589291
    Andras
    Keymaster

    This reply is private.

    #1590450

    This reply is private.

    #1591164
    Andras
    Keymaster

    Hello Claire,

    If I understand correctly you would like to use the organizer shortcodes provided by the extension and you would like to use a category filter with it.

    I’m afraid that will not work, even if you create categories for the custom post type of organizers, simply because that functionality is not present in the extension. We cannot put in the organizer category filter in the shortcode, because we simply do not have organizer categories.

    I can add this as a feature request for the extension for the future if you’d like. Note however that it can take some time until we get to developing this feature, as we do not officially provide support for extensions.

    I’m  not sure why the organizer categories do not appear in the menu. My support is limited in this case because that is already a custom development.

    The other topic you are referring to is a different case. They do not handle organizer categories as you want to, rather they are somehow assigning event categories to organizers, that is what goes in the ‘$organizer_cats’ variable.

    Andras

    #1591213

    This reply is private.

    #1591893
    Andras
    Keymaster

    Hi Claire,

    Thank you very much for your feedback on our support! Much appreciated!

    I have ticketed your feature request of having categories and category filtering for venues and organizers. Once we have some free resources we will take a look at it. Thank you for the idea!

    Since this is marked resolved I am going to close this ticket, but if you need anything else related to this topic or another please create a new ticket and we’ll be happy to help.

    Cheers,
    Andras

    PS: We’d be grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Thanks!

    PS2: If you like our plugins, and you didn’t yet do so 🙂 we would also be happy to receive a review in the wordpress.org repository. Much appreciated!
    https://wordpress.org/support/view/plugin-reviews/the-events-calendar/
    https://wordpress.org/support/view/plugin-reviews/event-tickets/

     

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Organisers – categories + shown on map’ is closed to new replies.