[GH-ISSUE #2] wp_rewrite changes/additions #2

Closed
opened 2026-06-06 22:28:56 -04:00 by yindo · 1 comment
Owner

Originally created by @Frumph on GitHub (Jun 6, 2012).
Original GitHub issue: https://github.com/Frumph/comic-easel/issues/2

Originally assigned to: @Frumph on GitHub.

Looking to have the permalink return as for each post.

Current: /comic/post_slug

Want: /comic/chapter_slug/post_slug

current: /feed/

  • works as intended - has both in it (with pre_get_posts parser) however ?post_type=comic&chapter=tubular&feed=rss2 will contain both as well.
    Want: /comic/feed/
  • only the feed for that specific post type - currently returns to the current page
  • bug in my post type registering, I'm guessing

current: /2012/05/25/?post_type=comic

  • for archive
    want: /comic/2012/05/25/
  • or any combination for dates of the archives, just don't want ?post_type=comic to be written out on the url line

want: Anything more productive then having the ?post_type=comic being written on the url line for normal operations

Current Rewrite Rules:

comic/[^/]+/attachment/([^/]+)/?$   index.php?attachment=$matches[1]    
comic/[^/]+/attachment/([^/]+)/trackback/?$ index.php?attachment=$matches[1]&tb=1   
comic/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ index.php?attachment=$matches[1]&feed=$matches[2]   
comic/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$  index.php?attachment=$matches[1]&feed=$matches[2]   
comic/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$  index.php?attachment=$matches[1]&cpage=$matches[2]  
comic/([^/]+)/trackback/?$  index.php?comic=$matches[1]&tb=1    
comic/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$  index.php?comic=$matches[1]&feed=$matches[2]    
comic/([^/]+)/(feed|rdf|rss|rss2|atom)/?$   index.php?comic=$matches[1]&feed=$matches[2]    
comic/([^/]+)/page/?([0-9]{1,})/?$  index.php?comic=$matches[1]&paged=$matches[2]   
comic/([^/]+)/comment-page-([0-9]{1,})/?$   index.php?comic=$matches[1]&cpage=$matches[2]   
comic/([^/]+)(/[0-9]+)?/?$  index.php?comic=$matches[1]&page=$matches[2]    
comic/[^/]+/([^/]+)/?$  index.php?attachment=$matches[1]    
comic/[^/]+/([^/]+)/trackback/?$    index.php?attachment=$matches[1]&tb=1   
comic/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$    index.php?attachment=$matches[1]&feed=$matches[2]   
comic/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ index.php?attachment=$matches[1]&feed=$matches[2]   
comic/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$ index.php?attachment=$matches[1]&cpage=$matches[2]  

As reported by rewrite rules inspector.

Originally created by @Frumph on GitHub (Jun 6, 2012). Original GitHub issue: https://github.com/Frumph/comic-easel/issues/2 Originally assigned to: @Frumph on GitHub. Looking to have the permalink return as for each post. Current: /comic/post_slug Want: /comic/chapter_slug/post_slug current: /feed/ - works as intended - has both in it (with pre_get_posts parser) however ?post_type=comic&chapter=tubular&feed=rss2 will contain both as well. Want: /comic/feed/ - only the feed for that specific post type - currently returns to the current page - bug in my post type registering, I'm guessing current: /2012/05/25/?post_type=comic - for archive want: /comic/2012/05/25/ - or any combination for dates of the archives, just don't want ?post_type=comic to be written out on the url line want: Anything more productive then having the ?post_type=comic being written on the url line for normal operations Current Rewrite Rules: ``` comic/[^/]+/attachment/([^/]+)/?$ index.php?attachment=$matches[1] comic/[^/]+/attachment/([^/]+)/trackback/?$ index.php?attachment=$matches[1]&tb=1 comic/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ index.php?attachment=$matches[1]&feed=$matches[2] comic/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ index.php?attachment=$matches[1]&feed=$matches[2] comic/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$ index.php?attachment=$matches[1]&cpage=$matches[2] comic/([^/]+)/trackback/?$ index.php?comic=$matches[1]&tb=1 comic/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ index.php?comic=$matches[1]&feed=$matches[2] comic/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ index.php?comic=$matches[1]&feed=$matches[2] comic/([^/]+)/page/?([0-9]{1,})/?$ index.php?comic=$matches[1]&paged=$matches[2] comic/([^/]+)/comment-page-([0-9]{1,})/?$ index.php?comic=$matches[1]&cpage=$matches[2] comic/([^/]+)(/[0-9]+)?/?$ index.php?comic=$matches[1]&page=$matches[2] comic/[^/]+/([^/]+)/?$ index.php?attachment=$matches[1] comic/[^/]+/([^/]+)/trackback/?$ index.php?attachment=$matches[1]&tb=1 comic/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ index.php?attachment=$matches[1]&feed=$matches[2] comic/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ index.php?attachment=$matches[1]&feed=$matches[2] comic/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$ index.php?attachment=$matches[1]&cpage=$matches[2] ``` As reported by rewrite rules inspector.
yindo closed this issue 2026-06-06 22:28:56 -04:00
Author
Owner

@Frumph commented on GitHub (Feb 18, 2014):

Scrapped this, need to find someone who can help write some code to do this properly.

<!-- gh-comment-id:35444288 --> @Frumph commented on GitHub (Feb 18, 2014): Scrapped this, need to find someone who can help write some code to do this properly.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Frumph/comic-easel#2