I feel like I read about how to accomplish this using
template_redirect but can’t, for the life of me, find it. Hoping someone can help.
I am trying to use two separate permalinks/templates for a single post – each providing different views of the post (through different templates).
http://example.com/category/post-name -> uses template1.php
http://example.com/category/post-name/details -> uses template2.php
Both refer to the same post ID but will show a different layout. I have a lot of custom field data that I want to display under details but not under the default view.
Thanks in advance,