<?php
// Adds FacetWP compatibility to the Avada theme's Post Cards element.
// For this to work, the Post Cards listing also needs a 'facetwp-template' class.
add_filter( 'fusion_post_cards_shortcode_query_args', function( $query_args ) {
$query_args['facetwp'] = true;
return $query_args;
}, 10 );