Tagged: search
-
AuthorPosts
-
September 13, 2024 at 10:52 am #1466900
Hello,
Search form for some words like “семицветик” does not show a post in drop down list field, but when you press “search button” the page is found.
Is there some attribute to add to this drop down while search?
How to set priority to be shown in dropdown?
https://buzaevclinic.ruSeptember 16, 2024 at 5:40 am #1467049Hey ibuzaev,
Thank you for the inquiry.
The AJAX search seems to be working as expected. Please check the screenshot in the private field.
Best regards,
IsmaelSeptember 16, 2024 at 2:35 pm #1467098There are pages in the search. But the page with this content is ABSENT in results.
https://buzaevclinic.ru/parkinsons-disease-community/ this is that page- This reply was modified 3 months, 1 week ago by ibuzaev.
September 17, 2024 at 4:52 am #1467160Hi,
Thank you for the update.
The keyword is also present in the items in the AJAX search results. Please check the private field. It’s possible that your preferred or expected post was published in the past or is not included in the initial results. Users may need to access the full search results page and use pagination to view other pages containing the keyword.
Best regards,
IsmaelSeptember 17, 2024 at 8:48 am #1467178The Ajax search shows only a few results. The results are displayed in a certain order (newest; page order …); Your search term is on a page that is older than the pages shown.
The number – how many results are displayed – is set to 5 by default in Enfold. This makes sense for the normal placement at the top inside main menu. Where you have the search, you might want to increase this a little.Incidentally, if you only want to display pages (or posts) there, you could also restrict this to these post types.
Put this to your child-theme functions.php :
function avf_modify_ajax_search_query($search_parameters){ parse_str($search_parameters, $params); $params['numberposts'] = 10; $search_parameters = http_build_query($params); return $search_parameters; } add_filter('avf_ajax_search_query', 'avf_modify_ajax_search_query', 10, 1);
September 17, 2024 at 3:48 pm #1467202Thank you very much, Guenni007 and Ismael
September 18, 2024 at 4:35 am #1467254 -
AuthorPosts
- The topic ‘Strange Search Behaviour’ is closed to new replies.