A cleaner solution, but some caveats
-
I’m glad to see a more straightforward approach than what you get with the Custom Post Template plugin. However, I immediately noticed that in certain situations, this renders post properties inaccessible including post meta.
is_singular( 'your_pt' )
also returns false because the post_type is effectively being changed to ‘page’ when you’re pushed over to displaying the page template(s). None of these things are surprising, however, just kind of what you get when you mess with the template stack ??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘A cleaner solution, but some caveats’ is closed to new replies.