Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterYou are welcome!
There is actually, you can enable it here: https://documentation.ajaxsearchpro.com/layout-settings/more-results-link
Ernest Marcinko
KeymasterYou cannot access this content.
May 23, 2024 at 10:14 am in reply to: Issue with the visibility of search settings in frontend #48254Ernest Marcinko
KeymasterYou cannot access this content.
May 23, 2024 at 9:47 am in reply to: Issue with the visibility of search settings in frontend #48253Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
May 22, 2024 at 3:39 pm in reply to: Issue with the visibility of search settings in frontend #48242Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi!
Thank you for the details, it helps a lot.
I think the issue here is only the results limit – by default it’s set to 10. When typing in a partial word, it matches less from different post type groups so the limit is met and some results might be cut off.
I have increased the limit from the initial 10 to 50.If you prefer to have less results (<50), then I recommend enabling this option instead. That will try to fetch equal amounts from each post type group.
May 22, 2024 at 3:18 pm in reply to: After 2 day- odd that a search product can return so much oddly relevant things #48240Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi Thomas,
If the pages are in a parent-child relationship directly, then you can exclude them.
For pages there is going to be a checkbox to exclude direct children as well. However this will not exclude them from the index, but only from the individual search instance.
You can however do it programmatically, so before a post is indexed a check is executed to exclude it from the index, something like this:
add_filter( 'asp_index_post', function ( WP_Post $post ) { if ( strpos($post->guid, '/path/to/excluded/posts/') !== false ) { return null; } return $post; } );Please note that I did not test this code, but it should be very close to a solution.
Try adding this code via the Code Snippets plugin or to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts