Skip to main contentSkip to footer

Co-Authors Plus is a neat plugin that makes it possible to have multiple authors for one post in WordPress. This is a useful feature WordPress doesn’t yet support.

Relevanssi only picks up the first author from the post, but making Relevanssi find the other authors as well is very simple, thanks to good design choices made by the Co-authors Plus developers. The plugin stores the extra authors in a custom taxonomy. Indexing custom taxonomies is elementary for Relevanssi.

In order to make Relevanssi index all authors for posts, simply add “author” to the “Choose taxonomies to index” option and re-index.

Your account

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

Search

Popular Resources

Ultimate FAQs
Ultimate FAQs is a FAQ plugin that can create FAQs. It has a search, and enabling Relevanssi may break that…
Wildcard matching

…the “Keyword matching” setting is not set to “Whole words” because wildcard matches are not whole-word matches. Enabling wildcard matching In order to enable the wildcard matching, add a filter function that returns true to the relevanssi_wildcard_search filter hook, like this: add_filter( ‘relevanssi_wildcard_search’, ‘__return_true’ ); Add this one-liner to your…Relevanssi Premium 2.10.2 introduces a new way to search: wildcard matching. Once the wildcard matching is enabled (it is disabled by default), it introduces two new operators: * and ?. Using the wildcard operators The * operator replaces zero or more characters, so searching for w*ess would match “wilderness”, “witness”,……“WordPress” and also “wess”. The ? operator matches exactly one character, so searching for gr?y would match “grey” or “gray”, but not “gravy” or “groovy”. These operators only work within words. Searching for *ess or gra? will not have the expected results. The wildcard operators can only be used when…

Wishlist Member: Sorting the posts by membership levels

…The post object to check. * * @return boolean True if post is on the specific level. */ function rlv_free_filter( $post ) { $free_posts = rlv_generate_level_post_list( 1313127748 ); return isset( $free_posts[ $post->ID ] ); } /** * Comparison function for array_udiff: post objects are considered * equal if they have……level posts and uses that check whether a post is on that list or not. The function that gets the list of post IDs will do that once, and will then just return the list on later calls. /** * Generates the list of posts for the specific membership level….…} if ( empty( $rlv_wishlist_level_posts[ $level ] ) ) { $results = wlmapi_get_level_posts( $level ); $rlv_wishlist_level_posts[ $level ] = array_fill_keys( array_column( $results[‘posts’][‘post‘], ‘ID’ ), true ); } return $rlv_wishlist_level_posts[ $level ]; } /** * Filter function that returns true if posts is on the specific level. * * @param WP_Post

Related Posts:

Comment Section:

29 Comments. Leave new

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