Okay! So I got this working by just changing the rewrite_rule to include the event…
function aca_award_cat_rewrite_rule() {
add_rewrite_rule( '^awards/([^/]*)/award-category/([^/]*)/?', 'index.php?competition=$matches[1]&award_category=$matches[2]', 'top' );
}
Related Posts:
- Rewrite rules and query for virtual page
- add_rewrite_rule query_var not being set
- add_rewrite_rule permalinks break in WordPress 4.5
- WordPress add a rewrite rule to a page to accept a GET variable
- Custom Fields Query Vars and Rewrite not working
- Last query_var not working with rewritten URL
- How to use endpoint, but remove/rewrite endpoint base?
- Passing variables in the permalink structure on a custom post type
- Querystring parameter getting lost in rewrite rule
- Custom post types and custom variables — add_rewrite_tag() question
- WordPress Custom URL Rewrites
- Does add_rewrite_rule(..) only accept “index.php” as redirect target?
- add_rewrite_rule not working for page var
- Cyrillic characters in rewrite rules cause 404 Not Found errors
- Custom Endpoint Gives 404 Header
- Clean URLs for custom $_GET variables
- Pagination Doesn’t Work
- Making extra parameters optional
- why is are these rewrite_tags and rules not working?
- resolve /author/ to a page or archive (of all authors) template
- Multiple values in a rewrite rule, is it possible?
- What add_rewrite_tag()’s RegEx matches against?
- add_feed and flush_rewrite_rules
- Change Theme from Plugin based on query_vars
- Best action to call add_rewrite_rule
- add_rewrite_rule isnt working, not getting added to rules array, why?
- add_rewrite_endpoint not working
- Associate the “add_rewrite_endpoint” and “$_GET”
- Custom Rewrite rule to match anything not already matched by WordPress
- Add Rewrite Endpoint to CPT Archive
- how to add rewrite rule to wordpress default post type
- Custom query var rewriting with only variable
- Optional all capture groups in rewrite rule
- Rewrite rule : custom post type with 2 numeric variiables
- Does it still make sense using json endpoint ep_mask now that there’s the new rest api? [closed]
- Simple page URL rewrite with add_rewrite_rule()
- Custom rewrite_rules – only pass numbers and not alphabetic characters
- Optimal code for two add_rewrite_rule’s
- Custom URL rewrites work, but break my permalinks
- add_rewrite_rule – Additional subpages for author pages
- How do I flush rewrite rules
- Pass query vars to front page
- Custom taxonomy rewrite with query var returns %2F in URL
- rewrite url in wordpress
- My add_rewrite_rule is returning a 404
- Rewrite rule for path of favicon.ico ( Add_rewrite_rule function possible ? )
- wordpress add_rewrite_rule not working
- How to flush rewrite rules on the activation of any plugin
- Rewrite without query parameter
- Mod_rewritte – remove ?m=1 from url
- Rewrite Rules problem when rule includes homepage slug
- WooCommerce – Conditional for page created by rewrite_rule
- Rewrite rules priority
- Rewrite rules ignored
- How do I turn off the blog and archives?
- Add_rewrite_rule doesn’t seem to work?
- Custom post types and custom variables — add_rewrite_tag() not working
- Grab last part of the url inside rule
- Leverage WP_Rewrite to pre-validate links / detect invalid links
- When request has multiple matching rewrite rules, and matched rule returns 404 – iterate to next rewrite rule
- “/” URLs without trailing slash shows 404
- How can I resolve search error with pagination wordpress
- CPT – Nice url with add_rewrite_rule
- get_author_posts_url() doesn’t return the author URL, because of wrong author_structure
- add_rewrite_rule only works when flush first
- Homepage rewrite rule
- WordPress add_rewrite_rule with 2 variables
- Custom permalink question
- WordPress pass url to page template when page does not exist
- Rewrite rule not working, issue may be in URI request
- custom rewrite rules will not be added to wordpress rewrite_rules database
- rewrite rules problem with #comments-2345
- Overcoming a complex WordPress page rewrite rules request
- Why isn’t my rewrite rule for add_rewrite_rule not working as expected?
- Rewrite Rules, Query Vars and Pagination
- A part of regular expression in add_rewrite_rule function not working
- How to change URL in WordPress
- WordPress Rewrite rule with custom query var
- Prevent WordPress to remove query vars from url
- How to add rewrite rule to point to file
- Taxonomy Rewrite Problem
- Pretty Filter URL
- Rewire Rules Front Page
- WordPress URL rewrite after changing web from Joomla
- Connect custom rewrite rules and query variables to wordpress navigation
- add_rewrite_rule doesn’t work for me
- Rewritten URL not loading WordPress environment
- WordPress Custom post type single page 404 error
- Rewriting base name Taxonomy same Post Type
- Rewrite URL to plugin file
- Where to hook to bypass instantiating WP_Query?
- Rewrite the WordPress URL from custom plugin
- add_rewrite_rule works only with one “directory”
- How to Add Rewrite Ruled Argument Into Permalink Properly
- Overwrite WP’s default search rule to redirect to my own template
- Add additional URL variations for a Post
- add_rewrite_rule() driving me crazy, rewrite not working when analyzer says it should
- What is the `rewrite_rules` option the options table in the WordPress database?
- Rewrite rule to index.php in theme subfolder
- How does WordPress manage to differentiate between post and page URLs without a distinct base, and how can I replicate this functionality?