Tag Info

Hot answers tagged


Wasn't as hard as I thought. Here's the working example, in case anyone finds it helpful: function em_query_vars($vars) { array_push($vars, 'state'); array_push($vars, 'city'); return $vars; } add_filter('query_vars','em_query_vars'); function em_rewrite() { add_rewrite_rule( '^state/([^/]*)/([^/]*)/?', ...


Set has_archive to false in your arguments when registering your post type, flush your permalinks and you should be goog to go. EDIT has_archive (boolean or string) (optional) Enables post type archives. Will use $post_type as archive slug by default. Default: false

Only top voted, non community-wiki answers of a minimum length are eligible