Can I show the filter module on a static page / in my header / in my footer?
Yes. Either use the widget and set a specific post type in it’s settings or add a parameter of your custom post type slug to the
show_beautiful_filters action. This “hardcodes” the filter module to that post type and lets you use it pretty much anywhere in your theme. Hardcore right..
<?php do_action( 'show_beautiful_filters', 'posttypeslug' ); ?>
Is there a way to change the order of the taxonomies?Title for This Block
Well of course! You can either change the order in which you register your taxonomies OR you can use the filter
Does this support multiple selecting multiple terms from the same taxonomy?
No. In a future release we will look into if it’s possible to support this AND having beautiful permalinks. If that doesn’t work we will likely add an option where you can opt out of beautiful permalinks and enjoy the power of multiple terms filtering instead.
My taxonomy isn’t showing in the filter / the filters are too small
A Taxonomy will not appear in the filter until at least one post has been connected to one of the terms.
Just start tagging up your posts and you’ll see it shows up! Also, make sure that your custom post type has an archive (in the arguments for the custom post type) since this plugin uses the builtin WordPress functionality for archives.
Why aren’t the builtin post types supported?
Posts are not supported because we haven’t been able to create proper rewrite rules for the multiple filtering to work. Posts are handled differently by WordPress than other custom post types (you have probably noticed that there’s no /posts/ in the permalink for example). Due to this the same rewrite rules that works for custom post types doesn’t work for posts. If you’re just looking to filter your posts by their categories with a dropdown you can use this function wp_dropdown_categories. It’s good practice to use a custom post type when you’re not going to use it as news/blog -posts so perhaps you should create a Custom post type instead and make use of this beautiful plugin!
The filter isn’t working with my taxonomies using a rewrite slug
Since v 2.2 this has been fixed. Make sure you keep BTF updated
In order for the rewrite rules to work with a taxonomy that has a rewrite slug you also have to add the same slug to the
query_var parameter of register_taxonomy. It wont have any visible impact for you but it’s what’s needed for the filtered urls to work!
Is it compatible with Polylang/WPML?
It is 99% compatible with Polylang, it’s hard to test with all variations of settings but in general it should work great! WPML is a bit wonky but might work depending on your setup. In order for this to work properly you should set the post types and all connected taxonomies to be translatable. The filtered urls will still work even if you don’t set the post type to be translatable but when switching language Polylang still think it should add the new language to the URL which means it’ll throw a 404 error. This is to be expected and NOT due to this plugin. If you experience 404 errors make sure you flush your rewrite rules by going to settings > permalinks in the admin dashboard.
Is it compatible with XXXXXX?
You will be able to use this plugin with any public registered custom post type regardless if it’s been created by yourself or a plugin. However the displaying of the CPT must be via it’s archive template. That means that a plugin that uses shortcodes to display the entire post listing on a static page will not work out of the box. It will also not work out of the box with plugins that in some way alter the permalink to the CPT archive.
I really love this plugin and I want to donate a little something-something 😍
Why thank you! I don’t have proper donate link but if you want to you can send me a giftcard on fancy. I’ll use it to buy cool stuff for the office! Make it out to firstname.lastname@example.org