Skip to content

Instantly share code, notes, and snippets.

@mrpsiho
Created October 9, 2014 14:55
Show Gist options
  • Save mrpsiho/4f210f7f254e409a774d to your computer and use it in GitHub Desktop.
Save mrpsiho/4f210f7f254e409a774d to your computer and use it in GitHub Desktop.
add_rewrite_rule('sushi-cats/([^/]*)/metro/([^/]*)/?$','index.php?product_cat=$matches[1]&metro=$matches[2]','top');
add_rewrite_rule('sushi-cats/(sushi|roll|set)/metro/([^/]*)/?$','index.php?product_cat=$matches[1]&metro=$matches[2]','top');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment