Forum Replies Created
-
AuthorPosts
-
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
KeymasterThanks! If you rated then don’t worry about it, wordpress.org does not like multi-accounts, don’t get yourlself banned for it. Cheers!
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterWell wordpress in general does not allow anything else than posts and other post types as results.
The search tries to “trick” wordpress by pushing a fake post instead of the users, and then correcting the titles and the URLs later – but unfortunately in many cases it won’t work, as it’s not supposed to work in the first place.
The only way to maybe have those results is by editing the search results template file in the theme directory and integrating the ajax search pro theme functions to get the original result titles, images, excerpts and urls. It is still possible that these won’t work, strongly depends if the query persists the data sent by the search.
Ernest Marcinko
KeymasterOh okay I see the problem now. You have a custom code snippet, which changes the title and if it finds no match then unsets it.
In the recent version a limit was added to the post title length at 999 characters as default and that’s what conflicted with the code. I have changed it to 9999, now everything should be back to normal.
Ernest Marcinko
KeymasterYes, you should enable the user search option, I forgot to mention.
No, it will not conflict with the other code, you can safely add it.
Ernest Marcinko
KeymasterOkay, I think it’s doable with a small custom code snippet.
Use 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.
add_filter( 'asp_query_args', function ( $args ) { if ( !$args['_ajax_search'] ) { $args['search_type'] = array('cpt'); } return $args; } );If you need help with it just let me know.
Ernest Marcinko
KeymasterThanks!
The index table was not enabled, so I have changed that. I have tested a few phrases from the Plaats 5 field, it seems to work all right at the moment: https://i.imgur.com/CTEyfFe.png
Can you please test and let me know?
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
I suspect it might be a taxonomy term or a user type result that is not possible to display on the results page.
Can you please check if it disappears if you disable search for users here: https://i.imgur.com/gfFJheu.png
Ernest Marcinko
KeymasterHi Nancy,
Thank you very much for your kind words!
The results page layout is outside of the scope of the plugin, unfortunately search plugins can’t control that – it’s controlled by the theme or the page builder you are using.
Most modern themes have options to customize the results page, or if you are using a page builder then that should do it too.
However please note that WordPress generally is very limited to what it’s capable of displaying on the search results pages. Unless you are really good at custom coding, I would suggest against trying to make groups of results on the results page, in the past 15 years I have only seen 2 cases where they made it work and it was extremely difficult and involved a lot of coding.
Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts