Show results of FacetWP by Content Views Pro layout

You can use Content Views Pro to display the results of FacetWP plugin. Here are steps:

1/ Browse to Settings > FacetWP, then click the “Templates” tab, backup the code in “Display Code” to somewhere.

2/ Replace “Display Code” content with this:

<?php
if ( method_exists( 'PT_CV_Functions_Pro', 'view_overwrite_tpl' ) ) :
	echo PT_CV_Functions_Pro::view_overwrite_tpl( 'VIEW_ID' );
else : ?>
	Paste the backed up content (in step 1) here
<?php endif; ?>

3/ replace VIEW_ID with ID of the View (which will be used to show FacetWP results).

Notice: The results and its pagination depend on the FacetWP plugin, therefore any Filter Settings, Pagination settings in View will not work.

Thank you,