Created
October 5, 2015 20:59
-
-
Save mgibbs189/7daa7a90b7b06387b749 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 | |
| function my_facetwp_is_main_query( $is_main_query, $query ) { | |
| if ( isset( $query->query_vars['post_type'] ) ) { | |
| if ( 'edd_wish_list' == $query->query_vars['post_type'] ) { | |
| $is_main_query = false; | |
| } | |
| } | |
| return $is_main_query; | |
| } | |
| add_filter( 'facetwp_is_main_query', 'my_facetwp_is_main_query', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment