Events URLs and Categories

Home Forums Calendar Products Events Calendar PRO Events URLs and Categories

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19449
    Max
    Participant

    Dear Support,

    I have three questions:

    1) I noticed that now we can add event categories, but I am struggling to see if it’s possible to add categories to URLs to land directly to each event category and its events:
    http://www.domain.com/events/music
    http://www.domain.com/events/theatre

    2) If that’s possible, would it be also possible to have the category as part fo the single template e.g.
    http://www.domain.com/event/music/event-title

    3) How do I echo the event category(s) when inside the loop?

    Thanks for your support,

    Max

    #19464
    Jonah
    Participant

    Hey Max,

    1. Any of your event categories will be accessible via: http://www.yoururl.com/{events_slug}/category/{category_slug}/ – you can create links to these from the WordPress custom menus pages or manually.

    2. Unfortunately this is not easy to do. For now I would suggest trying to rewrite your URL’s via PHP, plugin or .htaccess if you need this…

    3. If you need to echo all categories you could use something like:

    $terms = get_terms("tribe_events_cat");
    $count = count($terms);
    if ( $count > 0 ){
    echo "";
    foreach ( $terms as $term ) {
    echo "slug . "'>" . $term->name . "";

    }
    echo "";
    }

    I hope that helps but let me know if you need anything else.

    Cheers,
    Jonah

    #19465
    Jonah
    Participant

    Sorry that code came out crappy. Try this: https://gist.github.com/2019513

    #976892
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Events URLs and Categories’ is closed to new replies.