This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: This search form (with id something) does not exist!

Home Forums Product Support Forums Ajax Search Pro for WordPress Support This search form (with id something) does not exist! Reply To: This search form (with id something) does not exist!

#17568
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

I usually answer within hours, or as soon as I possible can. I’m based in central Europe, so there might be a bit more delay, depending on your location.

I have a few follow-up questions, I want to make sure I understand your requests.

..however, I cannot get it to search via a serial number range which is a custom field I set up..
I am guessing you are reffering to that serial-range bar on top of the ‘Downloads’ editor screen: https://i.imgur.com/xEN3WmN.png
I’m not sure how that field is stored in the database exactly, but my guess is, that the minimum and maximum values must be stored in the specified field for that slider. The problem is, that doing searches, the database will only see these values as they are, only ACF has a method to make sense of it. That means, that it is not possible for an SQL query to treat that field as a real ‘range’, and execute queries that match values within that range – because the database only sees that as a simple string. That means, that matching the start and end range numbers are most likely possible (as those must be stored), but nothing inbetween.

This could be only possible by creating some sort of a custom filter function, that executes after the search process, gets the serial range for each result, and then filter them based on the entered value within the filter. I think I can help you with that, but first, make sure to create a filter on that field as you would like it, then I will see what I can do about it.

I’m am not sure about your request based on the mock up though. From what I understand, there are models (I’m guessing these are post types?) and choosing the model would return the PDFs attached to that product? If so, then you will need a custom solution for that one, I don’t know there is a plugin that is able to handle that, to be honest.
Unless, the PDFs you are looking for are media attachments, or any post types registered, and the models are taxonomy terms or custom fields directly related to the PDFs post type – in that case, a filter should be possible to make. I have quickly looked through the back-end, but I don’t know if this is actually the case, as I didn’t find a post type editor for these ‘attachments’.