You just need to change the get_post_types( '', 'names' )
to array( 'post', 'page' )
. I.e. Manually specify the post types.
You just need to change the get_post_types( '', 'names' )
to array( 'post', 'page' )
. I.e. Manually specify the post types.