Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Filter by YYYY and Search topic in filter
This topic contains 44 replies, has 2 voices, and was last updated by Ernest Marcinko 1 year, 3 months ago.
- AuthorPosts
- September 28, 2021 at 9:22 pm #34912
We’re using a Filter here: http://dev.sightandlife.org/sal_magazines/ and upon choosing the filter preference, the result will display on http://dev.sightandlife.org/result/.
Clarification:1
We actually need to filter the result by publication year. This Publication year is actually the date published. We can give a year range also but if I’m using the custom field “year” then it is not picking from the Date published? How can to achieve this?
Clarification:2
Also in Filter, we need to have one text box (Label: Topic), and that need to search the post title or description but again if I’m using a custom field then it is not picking from all post titles. How to configure this?
Awaiting your support.
Attachments:
You must be logged in to view attached files.September 29, 2021 at 11:51 am #34931Hi,
Thank you for the details!
1. The problem with the date filter, that it only contains the year, not the month and the day. The datepicker UI script gets confused when the data is missing, and it basically resets to the initial value. I changed it back to the default format, that should work all right: https://i.imgur.com/ZVXLcIX.png
2. Well, to search the title or the content you should use the search input instead of a custom field filter. The custom field filters are mean to filter the post custom field metadata. Post titles, contents and excerpts are not custom fields.
Best,
For this to work, you should remove the topic filter, and turn the search input back on and select the title and the content for search only.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 1, 2021 at 9:18 am #34960You cannot access this content.October 1, 2021 at 10:47 am #34967Try importing this theme under here.
Best,
It should be very close to that, you may need to adjust here and there.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 15, 2021 at 7:47 am #35161You cannot access this content.October 15, 2021 at 9:45 am #35164Hi,
The overlay is available for the compact box layout mode, when it is set to a fixed position: https://i.imgur.com/1SxwA6m.png
Best,
Without the compact layout this is not possible, because the search field needs to be in a fixed position to properly apply the background.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 21, 2021 at 5:05 am #35233You cannot access this content.October 21, 2021 at 1:05 pm #35256Hi Raj,
Probably the best layout for mobile – if you want a global search bar – is the compact box layout.
Best,
It does not take up space, easily accessible.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 23, 2021 at 3:18 am #35287You cannot access this content.October 25, 2021 at 8:34 am #35299Hi,
1. By default, the plugin is configured to display 10 results on the live results list. You can change that here: https://i.imgur.com/n499NYU.png
2. It is intentional behavior and I am afraid it is not possible to change without editing the core code.
Best,
However we may change this in the upcoming release, as based on customer feedback you are not the first one to complain about this behaviour. It is very likely to be changed to “unchecked”, unless all the items are checked for the future release.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 25, 2021 at 6:25 pm #35326You cannot access this content.October 26, 2021 at 2:04 pm #35352Hi,
1. I assume you are trying to display attachments within an Elementor posts container? I’m afraid that is the problem then – Elementor simply does not allow that, it removes them and there is no way to get around it. This came up before, and there was no luck, we even tried contacting some of their developers, but we could not work out a solution.
2. I’m afraid no, the grouping only works in the plugin results container, when using the vertical results layout.
3. You have selected to use the index table engine, but on the index table settings only attachments are indexed and not the “post” and “page” custom post types. Whenever a search is triggered with a phrase, it will return nothing, as there is nothing in the index.
4. I just checked that search instance (id=2), but it is still set to 10 items: https://i.imgur.com/XAu6Tya.png
Best,
If you increase that number, it will surely increase the results count there.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 2, 2021 at 9:58 am #35427You cannot access this content.November 3, 2021 at 10:08 am #35432Hi,
1. It is the normal behaviour of the WordPress search bars. You can “override” that via using this custom code.
2. If the values show up, they are present in the post meta database for sure. There must be a post revision or something still present, which kept these values.
The only way is to not use the {get_values} feature, but enter them manually. In an upcoming release there will be an “exclude” parameter, which will allow excluding values from the fields.3. I tried a few phrases, by opening text based PDF files, but it seem to work okay on my end. I tried the phrase “MNDC” from this PDF, and it show up for me in the results: https://i.imgur.com/sWPHpgw.png
Best,
It is possible of course, that some words might not get picked up, but it should get as much as possible.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 5, 2021 at 11:58 am #35449You cannot access this content. - AuthorPosts
You must be logged in to reply to this topic.