Add the facetwp query argument to the Avada Post Cards element query

<?php
// Adds FacetWP compatibility to the Avada theme's Post Cards element.
// For this to work:
// - the Post Cards element needs to be nested in another Avada element, for example a Nested Columns element (set to one column), and 
// - that element needs the 'facetwp-template' class set.
// - Don't set the 'facetwp-template' class on the Post Cards element itself, because then the Nothing Found message/content will not work. Set it on the container.
// - Make sure that there are no facets within the container with class 'facetwp-template'. Facets need to be outside of it.
// - Don't use the Post Card element's pagination. Use a Pager facet instead.

add_filter( 'fusion_post_cards_shortcode_query_args', function( $query_args ) {  
  $query_args['facetwp'] = true;
  return $query_args;
}, 10 );