It looks as though you are accidentally including -meaning
inside your second match string. Instead of this:
^words/([^/]+)(?:/([0-9]+)-meaning)?/?$
… try this:
^words/([^/]+)(?:/([0-9]+))-meaning?/?$
And don’t forget to flush your permalinks after a change to the rules!
Related Posts:
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- How to modify URL structures in custom post types and taxonomies or terms
- Archive page with multiple taxonomies rewrite
- Taxonomy archives based on Custom Post Type
- Permalink rewrite with custom post type and custom taxonomy
- WP Rewrite Rules – Custom post type & taxonomy
- Remove base slug in CPT & CT, use CT in permalink
- Custom Permalink Tag breaks Pagination
- Custom Permalink for Taxonimie and Custom Post Type
- how to get archive urls with same origin for custom types and terms?
- Permalink Structure CPT With Custom Taxonomy Fails
- Remove url rewrites for registered taxonomies
- Customize Custom Post Type URL
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- Custom taxonomy rewrite with query var returns %2F in URL
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Custom Permalinks with CPT and Hierarchical Taxonomies
- How to get list of taxonomy slugs ordered parents>childs?
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- WordPress custom permalink and archive link for custom post type
- Modifying rewrite rules to use /category//
- Custom taxonomy and post type rewrite rules
- Remove cpt slug from url and use custom taxonomy instead breaks all other cpt
- How to properly set the rewrite rules for this case?
- Change CPT permalink to use the category
- How to fix 404 on post after prepending Custom Post Type url with Custom Taxonomy Term slug
- Redirect Custom Post Type from Child Taxonomies
- How to build overlapping custom post_type and taxonomy rewrites without conflicts?
- Custom Post Type rewrite url to /category/pagetitle [duplicate]
- page not found for example.com/custom-post-name
- redirect old post type url to new structure url
- Why won’t this rewrite rule work?
- Parent cpt/child custom post type URL permalink relationship
- Custom Taxonomy in Permalink from post type
- Rewriting a custom-post-type permalink with taxonomy term?
- Custom Post Type Permalink / Rewrite not working immediately
- How can I rewrite URLs to pass taxonomy and post type values to the query?
- Adding meta values to permalink
- Custom post type taxonomies URL rewrite
- Permalinks so that one custom post type appears to be a child of another, not working
- Create permalink structure for one taxonomy archive per custom post type
- Custom permalinks
- WordPress Custom Post Type Category Page
- Issues when rewrite rules collide?
- Prepend meta_value to permalink of post
- Custom Permalinks for Custom Post Types and Taxonomies
- Rewrite custom post type url’s adding meta box values
- Multiple parameters in a custom post type url rewrite
- Need help with complex custom post type setup
- Many to Many Taxonomies or rewrite rules?
- Custom post type category, taxonomy and URL rewrite problem
- Custom Post Type/ Taxonomy URL rewrite
- Bulk 301 redirect for custom post type
- multiple url slug for single custom post type
- Pretty URLs for Custom Post Type & Custom Taxonomy with Duplicate Slugs on WPML
- Custom Post Type and Custom Taxonomy Permalinks
- Pagination problem
- Change Permalink Structure for Tag.php template
- wp_list_categories() – current-cat class also inside posts?
- Custom Post Types, URL rewrite on multiple CPTs
- Adding custom post category slug in permalink causes 404 error for pages and posts
- How can I use get_post_meta with add_rewrite_rule to build custom permalinks?
- How can I make the slug of the taxonomy also the slug of the custom post
- How to rewrite url for any specific taxonomy?
- Custom post URL 404 error
- Remove slug in URL custom post type
- cpt and page sharing same base permalink
- URL rewriting for CTP assigned entity
- Custom taxonomy returns 404
- CPT’s with landing page instead of archive – Url Rewrite?
- Pretty URLs and custom post types
- Specific routing for CPT
- Properly flush rewrite rules on plugin activation
- Best way to specify “article type” in URL
- Custom Rewrite Rule for Custom Post Type with URL Param
- WordPress custom slug rewrite
- post_type_link Filter – Too Few Arguments
- Urls in Custom Post Type work for Terms but not for its Taxonomies
- Add Custom Values to Permalinks Through Custom Fields and Posts
- Archive page for custom post type and custom taxonomy
- custom post archive URL is wrong
- Rewrite rules for custom post type
- Custom Post Type and Taxonomy Rewrite Error
- Url Rewriting a dynamic wordpress page with parameters
- Custom taxonomy terms as children of multiple custom post types
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Custom Post Type & Taxonomies – Rewrite
- Display CPT taxonomies as an archive page
- add_rewrite_rule wordpress ignoring url pattern, wp rewrite not working
- Custom URL for Custom Post Type & Custom Taxonomy Term
- Custom taxanomy and custom post type – pagination leads to 404
- Register post type getting error 404
- Flush rewrite rules when new cpt is registred
- Custom post type rewrite and wp_pagenavi interfering with each other
- CPT url rewriting : regular posts return 404 error
- One custom post type with two different url structure base on taxonomy term
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- add_rewrite_rule not working in Custom Post Type UI Plugin
- Rewrite Rule for custom post type link with or without taxonomy terms