Website Customizations

mgibbs189

{{gist file=”custom.php” lang=”php”}}
<?php
/*
Plugin Name: Site Customizations
Description: Site Customizations
Version: 1.0
Author: Matt Gibbs
Author URI: https://facetwp.com/
*/

function fwp_index_attachments( $args ) {
$args[‘post_status’] = array( ‘publish’, ‘inherit’ );
return $args;
}

add_filter( ‘facetwp_indexer_query_args’, ‘fwp_index_attachments’ );

{{/gist}}