create a template page for a post
You can add a rewrite tag and rules that capture anything after the post name: function wpd_add_rewrites(){ add_rewrite_tag( ‘%my_page%’, ‘(.+)’ ); $post_types = array( ‘movie’, ‘book’, ‘album’ ); foreach( $post_types as $post_type ){ add_rewrite_rule( ‘^’ . $post_type . ‘/([^/]*)/([^/]*)/?’, ‘index.php?post_type=” . $post_type . “&name=$matches[1]&my_page=$matches[2]’, ‘top’ ); } } add_action( ‘init’, ‘wpd_add_rewrites’ ); Don’t forget, you … Read more