One thing I noticed is that you’re defining EP_CATEGORIES as a string, however it’s actually a constant (defined in WordPress Core). So for example you should define your ep_mask
like so (without quotes):
'ep_mask' => EP_CATEGORIES,
You may need to flush the rewrite rules after making this change.
Related Posts:
- A tool to analyze rewrite rules? [closed]
- What’s the difference between term_id and term_taxonomy_id
- Inserting Taxonomy Terms During a Plugin Activation?
- Making a plugin file accessible via url rewrite?
- How to Rewrite WordPress URL for a Plugin
- Custom Rewriting to Plugin with Parameters
- Filter to change the content of 404 page
- Add rewrite rule in plugin: with .htaccess in plugin folder or using WordPress functions
- Removing rules from .htaccess
- Mapping multiple URLs to same page
- Rewrite url for existing page without flush_rewrite_rules
- can I prevent WP users (even admin) from deleting custom categories?
- Custom rewrite rule serves content, but returns 404 error code
- URL rewriting must be activated manually for my plugin
- How to change the URL pattern for single post view
- If a function requires add_action(‘init’) how can I run it only once on plugin activation?
- Why doesn’t flush_rewrite_rules run on plugin activation?
- Redirect traffic to plugin
- Custom plugin: Loop through taxonomy types and update columns for all types?
- Append country to ‘pretty’ url but serve same page
- Insert terms for custom taxonomy on plugin activation, or each page load (init hook)
- Custom Taxonomy to dropdown box on adminside wordpress
- How To Consistently Enforce Rewrite Rule in Plugin Development
- How can I rewrite a URL to pass requests to a custom method via AJAX? (I can’t use admin-ajax.php)
- Adding rewrite rule dynamically
- rewrite URL based on selected taxonomy for post page
- $_FILES empty on created_{taxonomy} and create_{taxonomy} yet is is not on edit_{taxonomy}
- Why is the WordPress taxonomy not registering?
- Remove custom post type slug from URL and add taxonomy Slug
- Translate slug in WPMU with PO files
- How to Get Current Custom Post Type Associated Taxonomy Term
- Help writing custom function with rewrite endpoint that generates a page from dynamic content
- How to remove plugin-specific custom taxonomy terms when plugin is uninstalled?
- Possible to get all posts with my shortcode?
- add_rewrite_rule behaving strangely
- term_exists() returning NULL on term that exists
- Taxonomies within plugin invalid
- Let plugin check if taxonomy is already registered by another plugin
- HowTo to add my rewrite rules at the beginning, redirect to the right page and flush the rules on plugin activation?
- Create page (not the post type) dynamically
- How can I add rewrite rules to a class-based plugin?
- Non editable custom taxonomy
- modify show UI of a registered taxonomy
- How to create taxonomy without using register_taxonomy () function
- Add location tag to wordpress posts
- configuration of .htaccess for add_rewrite_rule to make sense
- Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
- Plugin Development – Get Admin Url (Including cases where wp-admin is not used)
- Forward an old url rewrite scheme to a new one?
- Rewriting Image URLs from dynamic to original
- Custom Path for a Plugin
- Custom post type change permalink query
- Add default custom taxonomy to plugin activation
- Change cannonical URL after changing url with add_rewrite_rule()
- Disabling Yoast, All-in-One, and Rank Math on Certain Pages within a Plugin
- WordPress custom url without using any of the custom tags given
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- Using meta_key & meta_value in add_rewrite_rule
- Javascript not being loaded only in custom taxonomy template
- set a custom post type to a taxonomy term programmatically in metabox
- How to force download a plugin generated file?
- How to pass a more variable with page/subpage in Wordprees URL?
- Making Woocommerce optimized for more than 500k products
- Any way to make Apache’s internal redirect work?
- add_action priority and taxonomy used in plugin
- Rewriting URLs with a query string
- edit-tags.php in plugin admin menu hides when is the active page
- How can I send an id over the url?
- Custom slug in url for CPT and taxonomy
- add_rewrite_rule not working
- How to display custom taxonomy and terms using/creating plugin template
- Mapping multiple URLs to same page
- Use custom clean URLs for a plug in
- How to show custom taxonomy child posts through shortcode in WordPress
- How to Rewrite WordPress URL for a Plugin
- Virtual Page with Registration form
- How to use permalink query to go to specific tabs in posts
- How to Rewrite WordPress URL for a Plugin
- If I want to create new taxonomies (e.g. Project / Documents / Etc…) is it better to create them in the theme’s functions.php or within a plugin? [duplicate]
- redirect word-press page with page values
- Is the only way to add taxonomy terms via an admin panel?
- URL rewrite parameter lost (add_rewrite_rule)
- WordPress Breadcrumb Taxonomy Display
- Custom rewrite, url path with parameters to a page
- How to boost WP custom post REST API GET queries by custom taxonomies
- Pretty URLs for dynamically created product and pagination pages
- How to load library scripts in admin from plugins in noConflict wrapper?
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Custom Plugin theme filter
- include php file if page_id matches
- How to remove default style of header in wordpress metabox
- Custom code for WordPress dynamic menu
- Plugin generated virtual pages
- Show error message after exception handled
- add javascript files only when plugin is called?
- wp_dropdown_roles() to replace option value = code
- Rewrite Rules returning wrong data
- captcha not working in my custom plugin
- Plugin templates vs Parent Theme
- I have 2 plugins using the same wp_login action hook and one is not working