add_rewrite_rule not working for blog category page
add_rewrite_rule not working for blog category page
add_rewrite_rule not working for blog category page
WordPress – replicate same globals, query vars and query for an alternate endpoint
CPT – Nice url with add_rewrite_rule
How can I resolve search error with pagination wordpress
“/” URLs without trailing slash shows 404
Since ‘submission‘ is a child page of ‘events‘, the rewrite rule should include the parent path add_rewrite_rule(‘events/([^/]*)/submission/?’, ‘index.php?pagename=events/submission&epl=$matches[1]’, ‘top’);
When request has multiple matching rewrite rules, and matched rule returns 404 – iterate to next rewrite rule
I don’t know if this can be done at once —using maybe an htaccess rule–. But, I think rebuilding the existing rewrite rules instead of adding new ones can do the trick. There are filters available for each group of rewrite rules: post_rewrite_rules date_rewrite_rules comments_rewrite_rules search_rewrite_rules author_rewrite_rules page_rewrite_rules {post_type}_rewrite_rules {taxonomy}_rewrite_rules By using ‘post_rewrite_rules’ filter we … Read more
Here’s a nice explanation of how rewriting is done in WP: http://ottopress.com/2010/category-in-permalinks-considered-harmful/ Also, might want to take a look at similar questions: Writing Custom Rewrite Rules that Incorporate Category for Custom Post Types?
You could create a custom post type and set hierarchical to true, but keep the post capability role. The link below is a good starting place. http://codex.wordpress.org/Post_Types Although I would strongly recommend using some sort of javascript html css workaround. Maybe a jquery ui tabbed interface located inside of your single.php theme like “http://www.mysite.com/post-name/#video”