ronthai
Member
Posted 2 years ago #
It is not working with the plugins installed, wp-user-frontend, witch is logical, now I installed and changed somethings (hours of work).
The plugins looks to the backend for the search suggestions, but when wp-user-frontend is installed that is blocked. Hope there is a way around this. If any body has any idea's, please let me know.
http://wordpress.org/extend/plugins/wp-search-suggest/
ronthai
Member
Posted 2 years ago #
This got solved thanks to the develloper of WP-Search-Suggest plugin.
Add this to your theme's function.php
<?php
function wpuf_fix() {
if ( defined('DOING_AJAX') AND DOING_AJAX ) {
remove_action( 'admin_init', 'wpuf_restrict_admin_access', 10 );
}
}
add_action( 'admin_init', 'wpuf_fix', 9 );
?>
ronthai
Member
Posted 2 years ago #
Got 1 more issue with wp search suggest.
It also suggests draft pages.
How do we solve this?
Regards, Ron
Konstantin Obenland
Member
Plugin Contributor
Posted 2 years ago #
Sorry buddy,
I developed WP Search Suggest, just posted the fix in your thread for the other plugin since the other plugin clearly caused the bug. ;)
About your second post:
Yeah, that's kinda odd, I'll try to fix it over the weekend.
Cheers
ronthai
Member
Posted 2 years ago #
Konstantin Obenland
Member
Plugin Contributor
Posted 2 years ago #
Hey Ron,
I released an updated version yesterday, the issue should be fixed now.
For some reason the database query ignored the default value of returning only published posts.
I also added filters, so you can customize the query args. Have a look in the Other Notes section for a reference.
Enjoy your weekend!
ronthai
Member
Posted 2 years ago #
Just updated it and yes the draft pages are gone in the list.
Thanks, Ron