Tag Info

Hot answers tagged


It wouldn't work too smoothly since you are mixing "one of a thing" (which in WP usually means single post) and "many of a thing" (post or term archive). Since comments are engineered to work with posts (pages are also kind of a post), the closest to this you can easily get is probably creating hierarchical Custom Post Type for this. Then /cars would be ...


You can create a posts archive by just setting post_type=post in your rewrite rule: function custom_archive_rule() { add_rewrite_rule( 'custom-archive/?', 'index.php?post_type=post', 'top' ); } add_action( 'init', 'custom_archive_rule' ); WordPress will identify this as is_home, so you'll have to target it in pre_get_posts ...

Only top voted, non community-wiki answers of a minimum length are eligible