2 Templates 1 custom post type according url
Use the query_vars filter to add a new query variable to store the template version (minimal / complete). add_filter( ‘query_vars’, ‘se385568_query_vars’ ); function se385568_query_vars( $vars ) { $vars[] = ‘tpl’; return $vars; } Add a rewrite rule (codex) to recognize the new link format and set the newly created query variable add_action( ‘init’, ‘se385568_rewrite_rules’ ); … Read more