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...

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...

relevanssi_user_profile_to_post

apply_filters( 'relevanssi_user_profile_to_post', object $post ) This filter hook lets you modify post objects Relevanssi Premium creates from user profiles. Parameters $post(object) The post...

Spam search blocking

...results You can also use Relevanssi spam blocking to block bots from search results pages. This can be useful: search engine bots can hit your site search a lot, with little benefit. According to Google’s John Muller, Google doesn’t want your internal site search pages in the index. They create......use this code snippet. It will add the required rule in your robots.txt file:​ add_action( 'do_robots', 'rlv_block_bots_robots_txt' ); function rlv_block_bots_robots_txt() { ?> User-agent: * Disallow: /search/ Disallow: /?s= <?php } That should keep the search engine crawlers from visiting your search results. If you want to make sure, you can...Spam searches are a common feature on WordPress sites. Spam bots make lots of useless queries. They hope sites display the search queries somewhere, providing links to spam sites. This is unpleasant, clogs up the search logs and wastes resources. Relevanssi Premium introduced a new spam blocking feature in version...

relevanssi_modify_wp_query

...search query. Forced phrase searching with fallback. Sets sentence parameter to force a phrase search. Natural language date queries. Dates in the search are converted into a date_query parameter. Ordering search results by date. Simple orderby parameter setting. Restrict search by author from the search query. If a search query......gets you search results faster. It’s also much easier to maintain. Examples Adding a custom field filter in the search. Converts a query variable to a meta_query. Changing the number of search results. Basic WP_Query parameter manipulation. Exclude old content from the search. A date_query parameter is added to the......This is generally the right place to do any modifications to the query variables. Sometimes you see cases where the search query parameters are modified in the search results template and the query is then run again, like this: <?php /** * The template for displaying search results pages *...

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

  • Removing Relevanssi from the quick edit
  • The wrong content gets indexed for a post
  • Premium 2.29 / Free 4.26
  • Translation and multilingual plugins
  • Disable in-page highlights on a specific page
  • Debugging slow searches
  • Indexing term descriptions for posts
  • Premium 2.28 / Free 4.25
  • Problems with highlighting in post content
  • Integrating Post Views Counter stats
  • Premium 2.27 / Free 4.24
  • Premium 2.26 / Free 4.23
  • GeneratePress: Query Loop
  • Year filter from the search query
  • Pin a post for all searches

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 2025 Mikko Saari and Painava sana oy. Privacy policy. Cookie declaration.