admin管理员组文章数量:1122832
I am trying to do custom RSS feeds for specific categorys of events in my event calendar on wordpress.
This one does work:
function custom_organizer_feed_rewrite_rule() {
add_rewrite_rule('^organizer/([^/]+)/feed/?', 'index.php?organizer_feed_name=$matches[1]', 'top');
}
add_action('init', 'custom_organizer_feed_rewrite_rule');
This one does not:
function custom_venue_category_feed_rewrite_rule() {
add_rewrite_rule('^events/venues/categorys/superior_category/([^/]+)/feed/?', 'index.php?venue_category_feed_name=$matches[1]', 'top');
}
add_action('init', 'custom_venue_category_feed_rewrite_rule');
Is it because it is nested? How can I use this rule - I just want to get the exact category here ([^/]+).
本文标签: Rewrite rule for nested URL does end in 404
版权声明:本文标题:Rewrite rule for nested URL does end in 404 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736302640a1931608.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论