Skip to content

Instantly share code, notes, and snippets.

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