Pass the post ID into the Query Arguments

mgibbs189

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

add_filter( ‘facetwp_preload_url_vars’, function( $url_vars ) {
$post_id = url_to_postid( FWP()->helper->get_uri() );
$url_vars[‘post_id’] = $post_id;
return $url_vars;
});
{{/gist}}