Alright, so after lots of reading, copying & pasting, and plugin installation I have finally gotten it to work.
This is using a custom post type: Sermons, a custom taxonomy: Series and allowing pagination on both pages.
First I downloaded this plugin here: http://wordpress.org/extend/plugins/monkeyman-rewrite-analyzer/
Next I typed in the URL I wanted to change to get what I needed to rewrite, then ended up with the following working code:
function sermon_rewrite_rules() {
add_rewrite_rule(
'sermons/(.+?)/page/?([0-9]{1,})/?$', //THIS IS WHERE I PASTED INFO FROM PLUGIN
'index.php?series=$matches[1]&p=$matches[2]&paged=$matches[3]',
'top'
);
}
add_filter('init', 'sermon_rewrite_rules');
Hope this can help someone else.
Related Posts:
- Custom Post Type Permalink / Rewrite not working immediately
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Custom post type 404s with rewriting even after resetting permalinks
- Permalink rewrite 404 conflict- WordPress Taxonomies/ CPT
- How to modify URL structures in custom post types and taxonomies or terms
- Help with a TV series Rewrite structure
- Permalink rewrite with custom post type and custom taxonomy
- How to check if last uri segment is a custom post type or taxonomy term?
- WP Rewrite Rules – Custom post type & taxonomy
- Remove base slug in CPT & CT, use CT in permalink
- Custom Permalink Tag breaks Pagination
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Custom Permalink for Taxonimie and Custom Post Type
- custom post type and custom taxonomy url conflict
- Add hierarchical taxonomy to permalink for custom post type
- Permalink Structure CPT With Custom Taxonomy Fails
- Parent & Child Taxonomy slugs in custom post permalink
- Custom taxonomy in URL showing 404
- Customize Custom Post Type URL
- Custom Permalinks with CPT and Hierarchical Taxonomies
- Custom post type permalink tag 404
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Hierarchical permalinks for custom post type and taxonomy
- How to solve this custom post type goes to 404 page?
- How to filter a custom post type by custom taxonomy without 404
- WordPress custom permalink and archive link for custom post type
- Safe to throw 404 error in request filter?
- Template hierarchy changes when custom post-type permalink leverages custom taxonomy
- Associate custom CPT with another CPT’s taxonomy and rewrite permalinks
- Parent cpt/child custom post type URL permalink relationship
- Adding rewrite rules to Custom Post-type mixed with Taxonomy
- Two Permalinks with one Taxonomy (custom taxonomy) and (custom post type -> custom taxonomy)
- How does WordPress manage to differentiate between post and page URLs without a distinct base, and how can I replicate this functionality?
- How to hook custom taxonomies to custom post types and make the permalinks work?
- How to change custom post type permalink structure
- Custom post type url with category
- Help with Elementor Pagination CPT archive 404 problem
- 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?
- Can’t get custom rewrite tag, query var, permastruct (permalink structure), and rewrite rule to work properly together
- How Can I Change the Custom Post Type Slug to the Taxonomy Slug in the URL?
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- How to have the same url structure for both a CPT and a Taxonomy?
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- create a subcatagory for a custom post type and out put url as posttype/subcategory/item
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- custom-taxonomy/post_name instead of the default post_type/post_name
- Show custom post archive when custom post not specified
- Show custom post type relationships by taxonomy
- Can’t remove front from permalinks for custom taxonomy category page
- Using taxonomy term in CPT permalink – Pages 404’s
- Removing custom post type slug from URL
- Custom post URL 404 error
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- Permalinks /country/city/cpt/postname/
- Seamless permalinks between Custom Taxonomy and Custom Posts
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- Custom taxonomy rewrite with query var returns %2F in URL
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- How to have this permalink structure: post_type/postname/custom_inner_page
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- Custom taxonomy returns 404
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Permalinks: custom post type -> custom taxonomy -> post
- Custom post type archive pagination 404
- CPT’s with landing page instead of archive – Url Rewrite?
- How to change permalink to include custom post type
- Custom post type, permalinks, taxonomies and blog posts
- How to get list of taxonomy slugs ordered parents>childs?
- Custom post type permalink returns 404
- Custom post type / taxonomy rewrite archive page 2 gives 404
- permalink /category/post-name with custom post type and taxonomy
- Custom post type and taxonomy permalinks
- Make custom post types and pages place nice, re: rewrite
- Flush Rewrite Rules when new site is created on network
- Pretty URLs and custom post types
- Get url.com/post_type/taxonomy/term work!
- set permalink for CPT
- Top Level pages in wordpress giving 404, but child pages working fine
- Rewrite rule for Custom post type Monthly and Yearly archive
- Different rewrite rules for taxonomies and cp in multisite?
- Custom permalink with child taxonomy terms
- Custom post type Permalinks with hierarchical Taxonomies
- 404 in custom post type feed with mistake permalink
- Add a permalink variable onto custom post type URL after post name slug
- Custom post type pagination 404
- How to add custom taxonomy in custom post type permalink?
- Properly flush rewrite rules on plugin activation
- Best way to specify “article type” in URL
- Template files for Custom Post Type and Taxonomy
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- How to query 2 custom post types that need to share a slug?
- Custom rewrite to fetch feed data
- Can’t use pagination with custom taxonomy
- Custom taxonomy page returns 404
- Template for custom post type when taxonomy is in the URL
- One Custom post type 404’s others don’t
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- Combine multiple CPT names to create valid permalinks
- Permalink problems with custom post type and custom taxonomy