How to go to tag archives using a form

To understand how to do it you first need to know how the url query works or more specifically what query vars you need, so: ‘post_type’ – to filter by post types. ‘area’ – to filter by area taxonomy. ‘university’ – to filter by university taxonomy. so your url would look like: // http://www.domain.com/?post_type=properties&area=area_term&university=university_term Now … Read more

My class function is not seeing GET url paramaters

As I said, I was just missing the declaration to use the global $wp_query, so it wasn’t accessing my filters. Here’s what worked incase it helps: global $wp_query; // pull variable from url if (isset($wp_query->query_vars[‘country’])) { $this->user_country = $wp_query->query_vars[‘country’]; } else { $this->user_country = ‘your country’; } if (isset($wp_query->query_vars[‘lat’])) { $this->user_lat = $wp_query->query_vars[‘lat’]; } else … Read more