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 1 month, 1 week ago.
- AuthorPosts
- December 18, 2022 at 6:14 am #40541
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.
December 19, 2022 at 3:23 pm #40558Hi,
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
Best,
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.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 19, 2022 at 4:55 pm #40567– 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
December 20, 2022 at 10:36 am #40581Hi,
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 :)
December 20, 2022 at 2:38 pm #40590You cannot access this content.December 20, 2022 at 4:01 pm #40597In 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 :)
December 20, 2022 at 4:24 pm #40600Please 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?
December 20, 2022 at 4:39 pm #40602Ok, I understand now. ‘taxonomies’ => array( ‘category’,’post_tag’),
December 20, 2022 at 4:40 pm #40603It is the books taxonomy, not a tag, you should see those here: https://i.imgur.com/vXjQoTY.png
Best,
The post tags are a different taxonomy.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 20, 2022 at 4:46 pm #40604LOL I need to learn more.
- AuthorPosts
You must be logged in to reply to this topic.