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)
- Can a custom post type have a Parent Page?
- Rewriting a custom-post-type permalink with taxonomy term?
- Templates for Custom Post Types and Custom Taxonomies
- 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
- How to achieve this permalink -> category-name/custom-post-type-name/post-name
- Custom permalinks
- WordPress Custom Post Type Category Page
- Add links to post categories and taxonomies in wysiwyg link modal?
- Prepend meta_value to permalink of post
- Custom Permalinks for Custom Post Types and Taxonomies
- Need help with complex custom post type setup
- WordPress monthly archive links result in 404
- Maintaining WP_Query Relation Among CPT, Custom Taxonomy, Permalinks- CPT UI
- Custom post type category, taxonomy and URL rewrite problem
- Define permalinks for custom post type by taxonomy in WP 3.4
- Remove taxonomy slug when not assigning taxonomy with custom post types
- Custom Post Type: How to display all of same taxonomy?
- Remove “-2” from a Toolset Types URL with the same post name
- how to get archive urls with same origin for custom types and terms?
- Programmatically adding posts
- How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- multiple url slug for single custom post type
- Custom post types, taxonomies, and permalinks
- How to specify URLS for custom posts & taxonomies
- Permalinks not working for custom taxonomy on custom post type
- Custom rewrite rule for hierarchical custom post type
- Custom Post Type permalink shows wrong page: homepage/index.php
- Custom post type url with category
- 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?
- Custom post URL 404 error
- Custom taxonomy rewrite with query var returns %2F in URL
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- CPT’s with landing page instead of archive – Url Rewrite?
- Custom post type and taxonomy permalinks
- Custom post type pagination 404
- Best way to specify “article type” in URL
- Template files for Custom Post Type and Taxonomy
- Custom post type permalink returns 404 when set to private
- Custom post type slug 404
- Post type Permalink
- How to rewrite the post slug of a custom post type post
- Using page title as a link to term archive
- Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?
- Permalinks not working (404) for the ‘item’ post type
- Custom category URL not displaying posts
- Duplicate slug/permalink issue while adding same post name
- Error 404 change permalink term custom term taxonomy
- Sudden 404 pages on product category archives
- Change CPT permalink to use the category
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- Pretty Permalinks with CTP and Taxonomies / Hierarchical
- % encoded URL giving 404 error in WordPress
- Issue with Custom Post Types and Permalinks
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
- 404 error next-page [2] PageNavi custom type taxonomy
- Custom taxonomy archive slug overwrites static page
- Group based routing and administration
- Adding Custom Taxonomy Along-with Post Name in Post Type Permalink
- Pretty permalink structure with multiple (AND OR) taxonomies
- How to have permalink structure based on taxonomy terms
- Multiple post types or single post type with category taxonomy?
- How can I add a “fake” parent into the permalink?
- Adding 2 CPT with multiple custom taxonomies to permalinks
- Add taxonomy to custom post type archive
- Permalink for Custom Post Types