Posted on

WP All Import compatibility

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 theme functions.php file, and any posts imported with WP All Import will be indexed with Relevanssi. Do note that this will make the importing process run slower.

2 comments WP All Import compatibility

Leave a Reply

Your email address will not be published. Required fields are marked *