Frumph / comic-easel

Comic Easel is a plugin for WordPress that let's you have a WebComic with any WordPress theme.
http://comiceasel.com
21 stars 13 forks source link

wp_rewrite changes/additions #2

Closed Frumph closed 10 years ago

Frumph commented 12 years ago

Looking to have the permalink return as for each post.

Current: /comic/post_slug

Want: /comic/chapter_slug/post_slug

current: /feed/

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

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.

Frumph commented 10 years ago

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