Forums Forums Search & Filter Pro results separate by custom post types

Viewing 10 posts - 1 through 10 (of 12 total)
  • Anonymous
    #198288

    Hi everyone!

    I’m building a search and filter with diferent custom post types. As I’ve seen I can’t use query options and I’m stuck trying to separate the results in groups having each group the custom post type name.

    Example. I’ve jobs, courses and trips. You can filter all of them by countries. The results of selecting one country will give jobs, courses and trips.

    How can I separate them on blocks? Like, jobs block with its title, courses block with its title, etc,…

    Thank you in advance

    Appreciate your time!

    Anonymous
    #198297

    Hi again!

    Wanted to update my issue but it isn’t possible!

    Is it possible to sort them by terms?

    Thank you

    Trevor
    #198301

    On the Posts tab, you can sort results by Post Meta (Custom fields) but not taxonomies (because a post can have multiple taxonomy terms, and these are stored as an array by WordPress, whereas sorting requires a single value), and also sort by Post Type.

    Here is an example:

    https://www.screencast.com/t/H57cgjKX

    The addition of separators or titles depends on the PHP template you are using, but is not in itself built in to Search & Filter.

    Anonymous
    #198308

    Well this doesn’t help me.

    I’m creating a custom template for results. Like this, Could I somehow, sort them by terms?

    With queries would be quite easy.

    Thanks in advance!

    Trevor
    #198310

    If you did not mean to sort them by the methods I showed, then I do not understand what you mean to sort by terms? Could you give me more detail to help me understand?

    As to adding a title etc, that would be something either you or a freelance coder you might hire would need to do.

    Anonymous
    #198318

    Yes exactly.

    I’m trying to sort the results by terms having each sorted group a title (the term). All what I’ve found to acomplish this is using queries but is not after paying the pro version that I saw that the plugin doesn’t work with queries.

    Thank you

    Anonymous
    #198322

    So, I’m trying to find a way to go around to acomplish this.

    🙂

    Trevor
    #198325

    The screenshot I sent you allows you to sort the results. It adds the the filter query. Is that not what you wanted (albeit that it does not add titles, but it should sort by primary and secondary sort keys)?

    Anonymous
    #198333

    I’m playing with the options like on the screencast.

    Till no, nothing.

    Anonymous
    #198335

    Anyway will have to code it by myself, because I can’t add a title on the diferent groups. The sad part is that I can’t use queries. Have no idea how I’ll achieve this.

Viewing 10 posts - 1 through 10 (of 12 total)