Category Archives: Knowledge Base

Knowledge base contains information on how to use Relevanssi. There are lots of features that are documented in the knowledge base. Here’s an index to the knowledge base, with all the entries sorted under different topics.

The most important troubleshooting trick

Advanced hacking, filter hooks

Search results pages

Search more

Tools

Troubleshooting

Which custom fields had the hit?

While the free version of Relevanssi will match search terms in custom field content, it doesn’t know which custom field had the matching content. Premium has that information and it can be made available. First, you need this in your functions.php: add_filter(’relevanssi_match’, ‘cfdetail’); function cfdetail($match) { global $customfield_data; $customfield_data[$match->doc] = $match->customfield_detail; return $match; } This [...]

Using Relevanssi with WP e-Commerce

WP e-Commerce is a popular shopping cart plugin for WordPress. This code by Alexander Gieg, added to functions.php for example, makes Relevanssi work better with WP e-Commerce. add_filter(’relevanssi_excerpt_content’,'wpscproductexcerpt’,10,3); function wpscproductexcerpt($content, $post, $query) { if ( ‘wpsc-product’ == relevanssi_get_post_type($post->ID) ) { $content = $post->post_content . ( !empty($post->post_excerpt) ? " $post->post_excerpt" : ” ); if ( ‘on’ [...]