This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Remove from facebook pixel #33250
    sumaiya91sumaiya91
    Participant

    Hi,

    I have found out another issue. It is not searching the content even though I have enabled “content search” in the backend. You can test it here https://newbook.therastore.co.nz/ and search “omega”. You can see that the posts are not showing in the dropdown even though there are posts with “omega” in it.

    Refer to the attached screenshot.

    in reply to: Remove from facebook pixel #33138
    sumaiya91sumaiya91
    Participant

    Thank you.

    It is working now.

    Can you also confirm:

    If i can delete the free version of the plugin now that I have the pro version

    Also I am testing the pro version on a test site but I want to add it to the production site as well. How can I do this as I believe this plugin is a single licensed plugin.

    in reply to: Remove from facebook pixel #33107
    sumaiya91sumaiya91
    Participant

    Ok then help me another way. I have changed the name of the default query string to “search” from “s”. But using the below code snippet

    //Remove the default search var and add a custom one
    add_filter(‘init’, function(){
    global $wp;
    $wp->add_query_var( ‘search’ );
    $wp->remove_query_var( ‘s’ );
    } );

    //If the custom var is passed copy that over to the default “s” var
    add_filter( ‘request’, function( $request ){
    if( isset( $_REQUEST[‘search’] ) ){
    $request[‘s’] = $_REQUEST[‘search’];
    }
    return $request;
    } );

    So the site works with https://newbook.therastore.co.nz/?search=collagen rather then https://newbook.therastore.co.nz/?s=collagen

    But now your plugin is still referring back to “s” is not working when the “search” button is clicked. How do i update the input box so it uses “search” rather than “s” variable.

Viewing 3 posts - 1 through 3 (of 3 total)