Last active
July 21, 2017 11:50
-
-
Save dryan1144/34627e5aca8529e069ffb7d1e2072741 to your computer and use it in GitHub Desktop.
This file contains 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 hck_filter_taxonomy_archives( $query_args, $sfid ) { | |
if( $sfid == 509 ) { | |
$query_args = array( | |
'post_type' => 'articles', | |
); | |
} | |
return $query_args; | |
} | |
add_filter( 'sf_edit_query_args', 'hck_filter_taxonomy_archives', 20, 2 ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment