Skip to main contentSkip to footer

By default posts imported with WP All Import do not get indexed by Relevanssi. The importing process does not trigger Relevanssi indexing. That is, however, easy to remedy:

add_action( 'pmxi_saved_post', 'post_saved', 10, 1 );
function post_saved( $id ) {
    relevanssi_index_doc( $id, true, relevanssi_get_custom_fields(), true );
}

Add this code to your site, and any posts imported with WP All Import will be indexed with Relevanssi. Do note that this will make the importing process run slower.

Your account

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

Search

Popular Resources

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,…
Index custom field contents
Custom fields (also known as post meta or meta fields) are a major part of WordPress the default search won’t…
Adding custom functions to a site

…and then you can add custom functions to this file. PHP snippets Finally, the third approach uses a PHP snippet plugin that lets you add and edit PHP code snippets from the WP admin. My recommendation would be Code Snippets, a well-done plugin that does the job well. The plugin……through them in this article. Functions.php The traditional method is to use the theme functions.php file. As the name suggests, this file exists for this purpose. WordPress will run everything you add here on every page load, both in the admin backend and front end. With this approach, you need……The minimum plugin is straightforward: you can create a file called custom-functions.php in the /wp-content/plugins/ directory and put this in the file: <?php /** * Plugin Name: My custom functions */ Once you do that, “My custom functions” should show up in the WordPress Plugins list for you to activate,…

Related Posts:

Comment Section:

2 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