-
-
Save rmorse/0d527a7a7821a5050254ed7ee0d279ff to your computer and use it in GitHub Desktop.
This modifies the $query_args object (rather than replacing it, which removes all the settings that are already in the object created by S&F).
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 hck_filter_taxonomy_archives( $query_args, $sfid ) { | |
if( $sfid == 509 ) { | |
$query_args['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