WordPress修改自定义文章类型的固定链接为 post_type/post_id.html
本例的自定义文章类型名称为book /** * 注册rewrite rule */ add_action( 'init', 'wpapp_custom_book_rewrites_init' ); function wpapp_custom_book_rewrites_init(){ add_rewrite_rule( 'book/([0-9]+)?.html$', 'index.p ... (more...)