Created
August 15, 2021 23:47
-
-
Save JoelEadeDesign/d694b5f29a5f1dd991c92379027887dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Allow Jet Smart Filters to show published posts | |
*/ | |
add_action( 'elementor/query/jet-smart-filters', function( $query ) { | |
// Add `jet-smart-filters` to `Query ID` of `Post` widget | |
$query->set( 'post_status', [ 'publish' ] ); | |
} ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment