Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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).
<?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
You can’t perform that action at this time.