filter bar add-on does not show up on detail single event view

Home Forums Calendar Products Filter Bar filter bar add-on does not show up on detail single event view

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1133899
    Andreas
    Participant

    Hi,
    i’m trying to show the filter bar add-on on a single event detail view. I already put this code in my detail template:

    <?php
    tribe_get_template_part( 'modules/bar' );
    ?>

    and this in my functions.php:

    function tribe_admin_bar_script() {
    if ( is_singular( 'tribe_events' ) ) {
    add_filter( 'tribe-events-bar-should-show', '__return_true' );
    }}
    add_action( 'template_redirect', 'tribe_admin_bar_script' );

    This shows the standard filter bar, but not the advanced filter bar add-on, where i expect to show up the categories and other individual filters.

    Everything is working fine in month / list / day view templates. But the filter bar add-on does not show up in single event template.

    Can you help?
    Thanks

    #1134267
    Cliff
    Member

    Hi Andreas.

    I can tell you that the tribe-events-bar-should-show filter is from The Events Calendar Pro, not from Filter Bar. It’s for what we call the Tribe Bar. I’m uncertain if Filter Bar fully replaces all instances of the Tribe Bar (and therefore this would then be the proper hook to use), but I’m guessing this isn’t the right way to accomplish what you’re wanting.

    Other than that, I’m limited in helping with such customizations, per our Scope of Support / Terms.

    If you do get other code, I could possibly review that for you again.

    Please let me know if you think I can be of further assistance to you here.

    #1134403
    Andreas
    Participant

    hmm,
    i found out that in \wp-content\plugins\the-events-calendar-filterbar\src\Tribe\View.php there are some code lines that check ” ! is_single()…”. If I edit some of the lines the filter bar shows up, but does not work correctly.

    I’m a license holder of Events Calender Pro and Filter Bar.

    Can you confirm that it is not possible at the moment to include the Tribe Bar and the Filter Bar in a single event Template without modifying the core code of the plugin(s)?

    And if the answer is “yes”:
    Is it planned to make those filters easy available in single event view?

    Thank you
    Andreas

    #1134720
    Cliff
    Member

    Thanks for the additional information.

    I believe you’re requesting essentially the same thing as one of our existing feature requests: Filter Bar as a Widget (although a shortcode would work well for you too I’m sure).

    Please do add your vote there if you want.

    This allows us to gauge interest in this particular feature request, which helps us prioritize our development efforts.

    ===

    Looking in /wp-content/plugins/the-events-calendar-filterbar/src/Tribe/View.php, I don’t see any filter from us to override the checks that ! is_single() is a part of so I’d say you’re right that it cannot be used on a single event.

    Again, Filter Bar is written to replace the Tribe Bar, which is also not used on single Event pages.

    You might want to add your own new feature requests to make the conditions customizable.

    ===

    I hope this has been helpful even if it wasn’t the answer you were hoping for.

    #1140760
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘filter bar add-on does not show up on detail single event view’ is closed to new replies.