Skip Navigation

[Waiting for user confirmation] Unable to filter posts on a Beaver Builder website

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 1 voice.

Last updated by Minesh 2 hours, 28 minutes ago.

Assisted by: Minesh.

Author
Posts
#2853238

Hey Toolset! For years we've been able to filter a custom post type called "People" on this graduate school website made with Beaver Builder. There are around 800 people associated with the school and they get filtered on different pages whether they are students, faculty, visiting fellows, etc.

I am trying to: filter the people posts on this website as we have previously, either by category, or by adding people one at a time

Link to a page where the issue can be seen: hidden link - We want to remove one current scholar, but are not able to do so).
hidden link - We are not able to filter the people posts anymore

I expected to see: Filtering work as usual, either by category or by individual person

Instead, I got: A random result of people, usually far more than we needed

Here's a screenshare video with more details: hidden link

#2853327

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I checked and I see you are using Advanced posts module from Beaver Builder.

Do you want to have frontend filer where user can select the filter in order to filter the result or you want to pre-filter the results with any of the category?

Toolset has limited integration with Beaver Builder. You can check with the following Doc:
- https://toolset.com/course-lesson/using-toolset-with-beaver-builder/

If you want to have normal custom search then you should try to build a view in legacy mode and then add the view to your beaver builder templatte.
- https://toolset.com/documentation/legacy-features/views-plugin/front-page-filters/

Enable the legacy mode - More info:
- https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/

#2853408

Thanks, Minesh!

We don't need anything as fancy as a frontend filer where users can select the filter. We're only wanting to display a single category (like "Balsillie Scholars") from custom post type (called "People") on the page. While this was possible for the past several years, that functionality no longer seems to work - so we cannot display a single category of the "People" custom post type. Even if we select a category of people in the Advanced Posts Module from Ultimate Addons for Beaver Builder (or the normal Posts module for Beaver Builder), that suggestion does not change the listing on the page, and all "People" are shown instead of just a subset of them.

We do have legacy mode enabled for the site.

Any other thoughts on how to fix this?

cheers,
Jacob

#2853472

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

It was not related to Toolset but still I'm happy to take forward step and share the solution with you.

Can you please check now: hidden link

I've added the following filter code to the code snippets section:
- hidden link

function prefix_filter_people_by_balsillie( $args, $settings ) {

    // Target only this module using HTML ID
    if ( isset($settings->id) && $settings->id == 'balsillie-scholar' ) {

        $args['tax_query'] = array(
            array(
                'taxonomy' => 'bsia-people',
                'field'    => 'slug',
                'terms'    => 'balsillie-scholar',
            )
        );

    }

    return $args;
}

add_filter( 'uabb_blog_posts_query_args', 'prefix_filter_people_by_balsillie', 20, 2 );

And I've set the HTHM ID at: Advanced Posts module → Advanced tab I've set
HTML ID: balsillie-scholar

I can see its working as expected.