Shortcode problem

Home Forums Calendar Products Events Calendar PRO Shortcode problem

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1342227
    Ulf
    Participant

    Hi, im using a shortcode and my goal is to list all the events that have the tag “flexpaket”. But the following shortcode does not filter the tag “flexpaket”. It just show all of the events.

    [tribe_events view=”list” tribe-bar=”false” tag=”flexpaket”]

    URL:
    http://www.varakonserthus.se/2017/pa-scen/flexpaketet/

    #1342322
    Courtney
    Member

    Hi Ulf

    Can you try using this shortcode instead?

    [tribe_events_list tag="flexpaket"]

    Let me know if that works for you.

    Thanks
    Courtney 🙂

    #1343020
    Ulf
    Participant

    Well… is sort of work. It views the right events, but not with the custom styling i want it to have.
    The event list should look like this page
    http://www.varakonserthus.se/pa-scen/

    #1343039
    Courtney
    Member

    Hi Ulf

    Unfortunately our full width calendar view shortcodes do not yet have tags as a filter option.

    If you think that is something you would like as a feature I encourage you to visit our User Voice Page and either upvote an existing request or make a new request there.

    You can suggest it it https://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/18382048-add-tag-as-filter-option-for-tribe-events-shortcod.

    Thanks
    Courtney 🙂

    #1343512
    Ulf
    Participant

    Would it work if i change “flexpaket” from a “tag” to a “category” instead?

    #1343601
    Courtney
    Member

    Hi Ulf

    Yes, calendar view shortcodes can support categories. Please let me know if that works out.

    Thanks
    Courtney 🙂

    #1344402
    Ulf
    Participant

    Well… it works, but choosing this way will generate another problem. If i switch this tag to a category also means that it also will be shown in the filterbar. This is something i do not want.

    Im using categories to define our available music-genres and thats is the only categories i want to be shown in the filterbar.

    Is there a way to exclude some categories from the filterbar or a way to pick witch categories i want to be shown.

    #1344687
    Victor
    Member

    Hi Ulf!

    You can hide specific categories from the Filter bar by using the snippet Nico shared in this thread > https://theeventscalendar.com/support/forums/topic/exclude-two-specific-categories-from-filter-bar-menu/#dl_post-1134692

    I hope that helps 🙂

    Is there anything else we can help you with? Let us know

    Best,
    Victor

    #1344761
    Ulf
    Participant

    Ok, i have tired it but it did not work for me. I try to exclude the category “dans”. Can you please check if my code is correct if i want to exclude the category “dans”

    /* Tribe hide categories from filter */
    function tribe_modify_category_filter ( $values, $slug ) {
     
        if ( $slug != 'eventcategory' ) return $values;
     
        foreach ( $values as $key => $value ) {
     
            if ( $value['name'] == ’dans’ || $value['name'] == 'Category Name 2' ) {
     
                unset( $values[$key] );
                 
            }
        }
     
        return $values;
     
    }
    add_filter( 'tribe_events_filter_values', 'tribe_modify_category_filter', 10, 2 );
    #1346582
    Courtney
    Member

    Hi Ulf

    You won’t need

    || $value['name'] == 'Category Name 2' 
    

    in your code.

    Can you try that?

    Thanks
    Courtney 🙂

    #1347362
    Ulf
    Participant

    Ok, i have inserted the following code, but the category is still visible in the dropdown list

    /* Tribe hide categories from filter */
    function tribe_modify_category_filter ( $values, $slug ) {
      
        if ( $slug != 'eventcategory' ) return $values;
      
        foreach ( $values as $key => $value ) {
      
            if ( $value['name'] == ’dans’ ) {
      
                unset( $values[$key] );
                  
            }
        }
      
        return $values;
      
    }
    add_filter( 'tribe_events_filter_values', 'tribe_modify_category_filter', 10, 2 );
    
    • This reply was modified 8 years, 7 months ago by Ulf.
    • This reply was modified 8 years, 7 months ago by Ulf.
    #1347561
    Courtney
    Member

    Hi Ulf

    I’m sorry this isn’t working. At this point, we’re limited in helping with styling customizations, per our Scope of Support / Terms. Please do push on to resolve this and let us know if you get this down.

    Thanks
    Courtney 🙂

    #1358369
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Shortcode problem’ is closed to new replies.