use global $wp_query so can use it later when filtering join,where, etc..