• Resolved regnalf

    (@regnalf)


    I have a site running ultimate member and relevanssi for better search results.

    I don’t have a standard “admin” account and used my real first name for the first user. The first name and last name are also stored in the user fields. I have stored this for example also in the imprint.

    Now when I search for my name (whether first or last name) I only get search results when I am logged in. If you search for it without logging in, you are thrown to the start page without search results or not even with the message “No search results”.

    The search works as soon as I deactivate ultimate member. I haven’t found any setting to prevent this.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @regnalf

    We haven’t tried this with Relevanssi. Could you please provide a video clip so we can see the issue clearly?

    Regards,

    Thread Starter regnalf

    (@regnalf)

    Sorry for the late respond, had a lot to do last time.

    I can make a video, can I sent it to you over a support email?

    Thread Starter regnalf

    (@regnalf)

    I’ve sent a mail with a video.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @regnalf

    Which email address did you use to send the mail?

    Regards,

    Thread Starter regnalf

    (@regnalf)

    Plugin Contributor Champ Camba

    (@champsupertramp)

    The issue was with the Relevanssi redirect the search to the UM profile page when it matches the keyword.

    Adding this code snippet will turn off the redirection:

    add_filter( 'relevanssi_post_ok', 'relevanssi_ultimatemember_compatibility', 10, 2 );
    function relevanssi_ultimatemember_compatibility( $post_ok, $post_id ){
    	
    	if( ! class_exists("UM") ) return $post_ok;
    	
    	if( $post_id == UM()->config()->permalinks['user'] ){
    		$post_ok = false;
    	}
    	
    		
    	return $post_ok;
    }

    Regards,

    • This reply was modified 3 years, 7 months ago by Champ Camba.
    Thread Starter regnalf

    (@regnalf)

    Thanks champ, seems to work now

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Search Results (Relevanssi) for Admin Name’ is closed to new replies.