Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Listing is Limited on Custom search box
This topic contains 8 replies, has 2 voices, and was last updated by gteigland 6 years, 1 month ago.
- AuthorPosts
- July 23, 2018 at 12:44 pm #18767
For some reason all the listings “Camera Name” are not listing on the CUSTOM dropdown search.
For example “Chambre” works on the main box search but does NOT work on the Camera Name Only Search. It use to be fine. It seems that anything after AL no longer shows in the Camera Name Search.
https://www.awesomescreenshot.com/image/3504183/74f5c7031c091c67204fc80c02798216
July 23, 2018 at 3:55 pm #18768Hi,
It happened, because the drop-down values were limited to 250 values only. I have increased this limit via FTP to 25 000. Now it should display all of them.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
July 30, 2018 at 12:11 pm #18820We seem to be having the same issue for our cutom Manufacturer Field. Where can I change this so I don’t have to bug you anymore with this.
Thanks!
July 30, 2018 at 4:51 pm #18824Hi,
The change affects all drop-down fields, not just that single one. I checked the query, and the database returns 114 different manufacturers only within that field, even when the limit is removed. If the manufacturer information will be used on posts, then it should be available in the post_meta table, and they should start appearing in the list as well.
The file that was changed is: wp-content\plugins\ajax-search-pro\includes\functions\functions.php
in case you want to archive it.- This reply was modified 6 years, 1 month ago by Ernest Marcinko.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 7, 2018 at 12:05 pm #18894So we are still having issues with this as it deals with result numbers. Let me give you a specific example that I think will help and make it easy to understand.
1. So in the MAIN search bar I’ve put the custom post types “Cameras” and Manufactures” and including ALL custom fields. See screenshot here:
https://www.awesomescreenshot.com/image/3534869/e214f40debbb8a0a221bbb7d858c744d2. When I type in AGFA in the Manufacturer box I get over 17 pages of results
https://www.awesomescreenshot.com/image/3534872/86cc4b938e5cd8e0b97ba66c14d85b8d3. However when I do the same in the main search box I only get 10 pages of results
https://www.awesomescreenshot.com/image/3534880/614f1ddd7161a425d77ced3e0768c3ca4. As you can see I’ve set my limit to 10000
https://www.awesomescreenshot.com/image/3534877/3c898e65f0273e0ec92c73b491210355We are having this issue on other similar search items. We just aren’t getting all the results that we should.
ONE MORE EXAMPLE: When you type in AGFA in the manufacturer box we only get 170 results but there are over 300 in our database. This camera is AGFA but does not show up in our search results when we type AGFA in the manufacturer field. We get even less results on the main search box on top.
http://wp.mckcamera.com/cameras/record-iii/Please advise.
August 7, 2018 at 2:08 pm #18900Hi,
I have run a quick debugging on the executed query for the search term ‘agfa’, and it returns 194 results, that should be 19 pages, not 10, however it prints only 10.
Then I checked if the posts per page values are set correctly, but everything seems to be okay.If I manually navigate to page 19, the last of the results work, so that means, that the navigation is not working correctly. See this: https://i.imgur.com/J0zWhM7.png
I checked, but the correct results count & page count is passed to the search query, so I am guessing that the navigation might use a different method to calculate the page count. The maximum page count should be queried from the $wp_query->max_num_pages variable.
Best,
I suggest investigating the navigation script, to make sure it uses this variable correctly.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 7, 2018 at 2:31 pm #18901ok gotcha that explain much of the confusion. Thanks!
Gene
August 8, 2018 at 2:17 pm #18924One more thing I completely forgot.
The posts per page option on the plugin back-end under General Options -> Behavior, and the posts per page option in the Settings -> Reading page should be set to the same value – that may cause the mismatch in the pagination.Make sure to check those, they may have been changed at some point.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 8, 2018 at 2:20 pm #18925That did it!! Thanks!!
- AuthorPosts
You must be logged in to reply to this topic.