Support » Plugin: Beautiful taxonomy filters » Can I fılter on all custom posts on one page

  • BTF works very well for individual archive pages for custom posts. But if I want to run it over ALL the custom posts I have on my site (or at least more than 1 custom post type) how would I go about doing that?

    I see that <?php do_action('show_beautiful_filters'); ?> doesn’t specify a custom post type – but maybe it infers it from the URL it finds itself in? This code from the FAQ <?php do_action( 'show_beautiful_filters', 'posttypeslug' ); ?> shows how to set it to a specific post type – but I don’t want to do that of course.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jonathandejong


    Hi @chabekah

    Hmm honestly I’m not sure it’ll work filtering multiple CPTs at the same time. Since it’s contradictory to the URLs it’s creating /posttype/tax/term.
    BTF wouldn’t be able to handle adding multiple posttype slugs to the URL.

    As you’ve guessed BTF infers the post type with multiple fallbacks. Primary method being checking for current post type using WP core functionality.
    OR you can specify the post type as per the FAQ, that’s mainly for when you want to place your filter module somewhere other than the archive as an entry to the filtered archive.

    Thread Starter chabekah


    OK, thanks for that. I assumed this is what you would say. We have thinking to put all our posts under one custom post type, and use the post_format to display them differently. And we are also using a “type” taxonomy to specify the type of each of these posts so that we can still use BTF to filter them. It’s a bit of a fiddle, but I think it will work. If you of course happened to know of another plugin we could use to filter across multiple custom post types we’d be all ears…

    Cheers, charles

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I fılter on all custom posts on one page’ is closed to new replies.