Skip to main contentSkip to footer

Relevanssi generally works well with Ultimate Member and can be used to search Ultimate Member profiles. Ultimate Member doesn’t do custom profiles but instead builds upon WordPress user profiles.

If you want to change the default /author/ URLs for user profiles in search results to point to the /user/ URLs Ultimate Member uses, that’s easy to do with the relevanssi_user_profile_to_post filter hook. Add this to your site:

add_filter( 'relevanssi_user_profile_to_post', 'rlv_ultimate_member' );
/**
 * Filters the user profiles when Relevanssi converts them to posts.
 *
 * @param object $post The post object (not a WP_Post object!).
 *
 * @return object The filtered post.
 */
function rlv_ultimate_member( $post ) {
	$post->relevanssi_link = str_replace( '/author/', '/user/', $post->relevanssi_link );
	return $post;
}

Your account

Not logged in. Log in to see your license details.

Search

Popular Resources

Indexing custom post statuses
If you’re using custom post statuses, Relevanssi requires some tinkering. By default, Relevanssi only handles posts that are of status…

Related Posts:

Comment Section:

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed