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

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

relevanssi_modify_wp_query

apply_filters( 'relevanssi_modify_wp_query', WP_Query $query ); This filter hook can be used to modify the WP_Query object before Relevanssi sees it. Parameters $query(WP_Query) The query obj...

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

  • Integrating Post Views Counter stats
  • Premium 2.27 / Free 4.24 release notes
  • Premium 2.26 / Free 4.23 release notes
  • GeneratePress: Query Loop
  • Year filter from the search query
  • Pin a post for all searches
  • WooCommerce: Aelia Prices by Country product visibility
  • PublishPress Revisions: duplicate posts
  • Korean postpositions
  • Premium 2.25 / Free 4.22 release notes
  • Indexing attachments from File blocks
  • Premium 2.24 / Free 4.21
  • EmbedPress autoembeds
  • Premium 2.23 / Free 4.20
  • WooCommerce: Make Relevanssi notice stock changes

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