SearchWP Integration
-
I have SearchWP indexing TablePress content now via the following code:
function init_tablepress_shortcodes_during_swp_indexing() { // Bail if TablePress isn't active if ( ! class_exists( 'TablePress' ) ) { return; } // Load the frontend controller TablePress::load_controller( 'frontend' ); // class methods aren't static so we need an instance to call them $controller = new TablePress_Frontend_Controller(); // Register the shortcode $controller->init_shortcodes(); } add_action( 'searchwp\indexer\batch', 'init_tablepress_shortcodes_during_swp_indexing' );However, it is indexing table columns as ‘combined’ content. Ie. from what I can tell, it is just indexing the entire table as merged content.
eg. instead of having “this” and “that” indexed, it is being indexed as “thisthat”.
Is there anything in the code above that we can change to have TablePress render the table in a better way?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘SearchWP Integration’ is closed to new replies.