Skip to content

Relevanssi

  • Buy Premium
  • Download
  • Features
  • User manual
  • Knowledge Base
  • Support
  • Contact
Knowledge Base > Plugin compatibility > Ultimate Member
Posted on February 3, 2021March 11, 2022

Ultimate Member

by Mikko Saari

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;
}

Related Posts

Ultimate FAQs

Ultimate FAQs is a FAQ plugin that can create FAQs. It has a search, and enabling Relevanssi may break that search. There are two ways to fix these problems. Using Relevanssi The search comes...

Profile Builder Pro

Relevanssi can index extra fields created with Profile Builder Pro. All you need to do is add the custom fields' names to the Relevanssi setting "User fields to index" (this is a Premium feature, so y...

Membermouse

If you're using MemberMouse to manage memberships on your site, having Relevanssi co-operate with MemberMouse is easy using the relevanssi_post_ok filter hook. Add the following code to your site and ...

User profile search

Relevanssi Premium can search user profiles. So far the following data gets indexed from user profiles: first name, last name, display name and description. If you're interested in having something el...

Wishlist Member: Sorting the posts by membership levels

Someone wanted a way to prioritize posts that are targeting particular Wishlist Member membership level. The basic implementation here is simple: create a relevanssi_hits_filter function that will sor...

relevanssi_post_ok

apply_filters( 'relevanssi_post_ok', boolean $post_ok, int $post_id ) Filters whether a post can be shown to the user or not. Parameters $post_ok(boolean) If true, the post can be included in...

Categories: Plugin compatibility
Tags: relevanssi_user_profile_to_post

Leave a Reply Cancel reply

Are you a Relevanssi Premium customer looking for support? Please use the Premium support form.

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

Buy Premium

Buy now »

(for other license options, see here)

License status

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




Search

When autocomplete results are available use up and down arrows to review and enter to go to the desired page. Touch device users, explore by touch or with swipe gestures.

Recent Posts

  • Premium 2.23 / Free 4.20
  • Make Relevanssi notice WooCommerce stock changes
  • Premium 2.22 / Free 4.19
  • Premium 2.21 / Free 4.18.4
  • Only return exact title matches if possible
  • FileBird: Filtering attachments by folder
  • Polylang: Bilingual search
  • ACF: Indexing files from File fields
  • Index only short numbers
  • Premium 2.20 / Free 4.18
  • ACF: Filtering custom fields by type
  • Ajax Load More
  • Indexing WPML synced posts
  • Automatic redirects to category archives
  • Indexing fails? Check max_allowed_packet!

Post navigation

Previous Previous post: Moving the admin search page
Next Next post: Elementor

Relevanssi

WordPress search done right!

The free version

Relevanssi at WP.org plugin repository
Relevanssi at Github

Relevanssi Light

Relevanssi Light
Relevanssi Light at WP.org plugin repository
Relevanssi Light at Github

Relevanssi Live Ajax Search

Relevanssi Live Ajax Search
Relevanssi Live Ajax Search at WP.org plugin repository
Relevanssi Live Ajax Search at Github

Responsibility

We take corporate responsibility and our environmental impact seriously. Read our responsibility statement.

Code from Finland
  • Github
  • WordPress.org
Copyright 2022 Mikko Saari and Painava sana oy. Privacy policy. Cookie declaration.