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

Ajax Load More

…of the extension, you can make Ajax Load More use Relevanssi by adding this function to your site: add_filter( ‘alm_modify_query_args’, function( $args ) { $args[‘relevanssi’] = true; return $args; } ); This function enables Relevanssi in the Ajax Load More queries. Every time Ajax Load More loads more results, it…Ajax Load More is an infinite scrolling plugin for WordPress. It has a Relevanssi extension, but with the current versions of Ajax Load More (5.5.4.1 as I write this), the extension no longer does anything. The extension relies on a filter hook that does not exist in the plugin. Instead……counts as a new search for Relevanssi logs. If you don’t like that, you can make Relevanssi only log the first Ajax Load More search. If you want that, use these functions instead of the one above: add_filter( ‘alm_modify_query_args’, function( $args ) { global $rlv_is_offset_query; $args[‘relevanssi’] = true; if (…

Why is a post type excluded from search?

…is registered has not changed: it’s still the same. Relevanssi just doesn’t care about it and still indexes the post. The setting does affect Relevanssi in that when Relevanssi does search posts, Relevanssi does respect this setting and will exclude these posts from the searches. That’s often for the best;…In the list of post types to index in the Relevanssi indexing settings tab there’s a column “Excluded from search”, which has a value of “yes” or “no” for each post type. What does this mean, and why does the value remain “yes” even if you set Relevanssi to index……that post type? This column is strictly for information only, and does not govern what Relevanssi does. This is something that is defined when a post type is registered. Some post types are meant for public use (like post or page) and thus are not excluded from the search. Other…

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