I ended up going with the regex. In my case that looks like:
add_rewrite_rule('^messages/messages-app-view/page/?([0-9]{1,})/?$',
'index.php?pagename=messages&messages-app-view&paged=$matches[1]', 'top');
Related Posts:
- How Can I Change a Taxonomy URL Based On The Originating URL?
- custom taxonomy and pages rewrite slug conflict gives 404
- Remove taxonomy base or term from url
- How to remove “Taxonomy name:” from wp_title
- Removing taxonomy base using WP rewrite
- Custom taxonomy on permalink
- Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin
- URL rewrite rules for multiple taxonomies query
- Rewrite rule for custom taxonomy
- Nice URLs for a Custom Post Type List with a Shared Custom Taxonomy?
- How can I display parent and child taxonomies in separate drop downs?
- How do I rewrite a url to use %taxonomy% instead of %category% when multiple taxonomies are present?
- Help With issue on pre_get_posts filter in taxonomy
- Pros and cons of using [taxonomy name] in place of [category name]?
- Taxonomies not appearing in columns on dashboard
- WP redirects pretty permalink to query string
- Removing the base “Author” or changing it to something else. is it possible?
- Permalinks for quote authors
- Filtering more than one term in a taxonomy in WP
- How to display term description in empty terms archive?
- Save Filter for Taxonomies
- Sorting Posts Via Custom Taxonomy Values Using Checkboxes?
- Add parent/child taxonomy to custom post type url
- How to filter WordPress search, excluding post in some custom taxonomies?
- Keep taxonomy base name in post permalinks
- Search by type posts and taxonomy
- Current category link filter
- Permalinks for custom taxonomy stopped to work
- Taxonomy with_front causes all
- 404 error- issues with pages after adding custom rules for posts
- How to overwrite registered taxonomy url from vendor plugin in child theme
- How to add a Rewrite Rule / Category Structure
- Rewrite URL for taxonomy listing
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- Change the permalink URL to include a taxonomy term
- Rewrite Rule Working for all but one of the taxonomies created
- Page and Post return 404 with custom taxonomy
- Simple Filter between multiple taxonomys
- How to Rewrite Taxonomy URL to Include the Post Type as the Second Segment of the URL?
- Get parent and children taxonomy in different dropbox
- Taxonomy Pagination Rewrite
- woocommerce custom product category template
- Add Taxonomy Subcategory To Permalink
- how to change permalinks format for pagination?
- Custom Taxonomy and Rewrite URL
- How do I create a permalink structure with 2 taxonomies
- Rewrite Rules returning wrong data
- Pagination on Custom Tax Pages Removes Spaces from Query Vars
- How to rename custom taxonomy URL with extra words
- Custom URLs in Custom Search Results
- How to change url for taxonomy pages?
- Remove custom taxonomy column from my custom post type columns
- Query custom taxonomy by term id?
- Custom Taxonomy specific to a Custom Post type – rewrite URL
- Query posts using custom taxonomy and selected terms
- Permalink Problems
- Build filter for post-type + multi taxonomies + multi terms
- How to add hierarchical taxonomy with parent child relation to URL?
- Clean Custom URL for Serach + Custom Taxonomy
- Advanced search redirecting to another page then filter further
- Custom rewrite permalink doesn’t work
- forward/redirect taxonomy archive of term to a page with same name
- URL rewriting taxonomy term
- How can i fix a 404 error when targeting custom taxonomy slug ?
- Display taxonomy with a maximum number of letters
- Permalink issues with custom taxonomies
- Drop-down filter doesn’t retrieve custom taxonomies
- Creating a drop-down and filter button for two custom taxonomies assigned to a custom post type
- Filter with two id of the same value CPT UI(taxanomies)
- Amend taxonomy to search in wordpress admin
- Include get_term_link inside search
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Taxonomy URL rewrite whilst keeping filtered posts?
- Keeping session instance of random display results over pagination breaks
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- How can I rewrite the URL of my custom taxonomy to include the year?
- How to change Custom Permalink for Taxonomy? (remove the slashes from term-slug)
- How do I get the correct URL?
- How to structure all custom-taxonomy with three verbs(a,b,c) and route them accordingly?
- Rewriting url for multiple Taxonomies and Custom Post Type
- use apply_filters return taxonomies custom post type
- How to filter a page title with custom taxonomies
- Custom rewrite url structure for several custom taxonomy (NOT pos_type)
- Remove taxonomy name and add .html extension in the custom taxonomy term URL
- Hierarchical taxonomies in permalink cause 404 for sub term archive
- Permalinks incorrectly inserting multiple categories
- Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)
- add_rewrite_rule using custom taxonomy and year
- Sort Taxonomy List by Custom Values
- Need help understanding a rewrite with multi-level taxonomy
- Taxonomy to WordPress Permalinks of custom post type
- Multiple Taxonomy in URL/Query – No Custom Post Type
- Creating a page for custom taxonomy archive
- Custom Taxonomy Archive URL rewrite
- Later change of taxonomy slug base not changing permalink
- Rewrite URL for a specific taxonomy [duplicate]
- get_posts assigned to a specific custom taxonomy term, and not the term’s children
- How to display warning on post editor when trying to add new term to custom taxonomy?
- Custom metabox for menu administration page?
- How to customize custom taxonomy url?