Skip to content

Instantly share code, notes, and snippets.

@technosailor
Created November 26, 2018 18:28
Show Gist options
  • Save technosailor/a2190b8d5d8cf48398dc1b17a0546b23 to your computer and use it in GitHub Desktop.
Save technosailor/a2190b8d5d8cf48398dc1b17a0546b23 to your computer and use it in GitHub Desktop.
add_filter( 'request' function( $query_vars ) {
if( isset( $query_vars['feed'] ) ) {
$query_vars['post_type'] = [
'post',
'page'
];
}
return $query_vars;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment