Fix Beaver Builder template issue (fl-builder-template)

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

// Add this to your (child) theme’s functions.php
add_filter( ‘facetwp_is_main_query’, function( $is_main_query, $query ) {
if ( ‘fl-builder-template’ == $query->get( ‘post_type’ ) ) {
return false;
}
return $is_main_query;
}, 10, 2 );

{{/gist}}