WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type Page Template
A cleaner solution, but some caveats (3 posts)

4 stars
  1. 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 :)

  2. Sim2K
    Member
    Posted 1 year ago #

    Can you fix it ?

  3. Can you fix it ?

    You'd probably need to talk to the plugin author about that. He's bypassing the template stack to do some things WordPress isn't currently very capable of handling gracefully.

    It's admirable that he's found a more direct approach than that other plugin I mentioned, but as I said in the review, these are caveats you need to accept if you're using a plugin that does something like this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.