two issues more: multiselect filter & Tag filter

Home Forums Product Support Forums Ajax Search Pro for WordPress Support two issues more: multiselect filter & Tag filter

This topic contains 9 replies, has 2 voices, and was last updated by kokosan kokosan 1 month, 1 week ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #40541
    kokosan
    kokosan
    Participant

    Hi, I just add more topic but you can answer when you are available.

    I see two issues more:

    1) the multi select dropdown filter is not working?. For example, I have 4 categories. It shows the result only when I select category1. But when I select more catgory2, the result disapears. That means it will show the result when I select only one category per time, not multiple.

    2) The tag filter is not working in custom post type? But it works in the post type. In Frontend search settings > Post tags, when I enable this option “Show the tag selectors?” and select “show All tags” the result show not found. In Search sources > Post type search, I select the custom post type that I want to filter already. You can check the search “dhamma topic samyaek” which is for the custom post type and compare to “Dhamma search” which is for the post type. You would see that the tag filter works only in the post type, not custom post type.

    You have my WP login credential in the last topic.

    #40558
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    1. It might be only due to the multiselection logic. Try changing this option: https://i.imgur.com/ufaHQep.png
    In this case results will be displayed whenever at least each of the tags match, it does not have to be both.

    2. It does not depend on the post type. Currently I am only seeing 3 post tags on your website, but only 1 has any items associated with them: https://i.imgur.com/FHKfuN8.png
    The plugin automatically shows only the tags where is at least 1 post/post type is associated with, because empty tags will not change the search outcome.
    If you start adding more tags to posts or other post types, they will start to show up in the list.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #40567
    kokosan
    kokosan
    Participant

    – The number 1 is ok now, need to change the option as described in the screenshot.

    – For the number two, your screenshot is for the post type, which has no any problem. But can you see this video for more description? The thing is that in the custom post type “Sytopic” I have two posts in the tag already but doesn’t show the result with that tag filter. https://drive.google.com/file/d/1_WNZVfoSouZrEMiQGfmZnMphVaHgKcd1/view?usp=sharing

    #40581
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    2.) The custom post type “sytopic” has no match with any of the tags. If you don’t want to apply the tag filters to items, where the taxonomy is not attached, then turn on this option: https://i.imgur.com/xFoUTpH.png

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #40590
    kokosan
    kokosan
    Participant
    You cannot access this content.
    #40597
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    In that code you are not using tags, that is the “books” taxonomy:

    'tax_query' => array(
        array(
          
          'taxonomy' => 'books',
          'field' => 'slug',
          'terms' => 'พระวินัยปิฎก'
    )
     

    That is a taxonomy filter on “books”, not the tag filter.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #40600
    kokosan
    kokosan
    Participant

    Please see screenshot https://www.dropbox.com/s/6ujnupe7tm3j70k/pt.png?dl=0 How can I do that? Is this a tag of the post type “sytopic”? right?

    #40602
    kokosan
    kokosan
    Participant

    Ok, I understand now. ‘taxonomies’ => array( ‘category’,’post_tag’),

    #40603
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    It is the books taxonomy, not a tag, you should see those here: https://i.imgur.com/vXjQoTY.png
    The post tags are a different taxonomy.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #40604
    kokosan
    kokosan
    Participant

    LOL I need to learn more.

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

You must be logged in to reply to this topic.