gleenk
4/22/2015 - 9:47 AM

Preserve query string adding new post type WORDPRESS

Preserve query string adding new post type WORDPRESS

global $query_string;
parse_str( $query_string, $args );
$args['post_type'] = array( 'my_post_type', 'my_second_post_type' );
query_posts( $args );