Created
November 26, 2018 18:28
-
-
Save technosailor/a2190b8d5d8cf48398dc1b17a0546b23 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
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