WordPress.org

Ready to get started?Download WordPress

Forums

WP Search Suggest
[resolved] Not working with wp-user-frontend (7 posts)

  1. ronthai
    Member
    Posted 3 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/

  2. ronthai
    Member
    Posted 3 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 );

    ?>

  3. ronthai
    Member
    Posted 3 years ago #

    Got 1 more issue with wp search suggest.
    It also suggests draft pages.
    How do we solve this?

    Regards, Ron

  4. Konstantin Obenland
    Member
    Posted 3 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

  5. ronthai
    Member
    Posted 3 years ago #

    Sorry change it

  6. Konstantin Obenland
    Member
    Posted 3 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!

  7. ronthai
    Member
    Posted 3 years ago #

    Just updated it and yes the draft pages are gone in the list.

    Thanks, Ron

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic