Jump to content


This topic is now archived and is closed to further replies.


Templates and Custom Posts Types

Recommended Posts


Can someone please talk me through how to accomplish this?


I have 2 different custom post types.  I want to use 2 different templates.  

template 1 for cutsom post type 1 and template 2 for custom post type 2.  

each post type has 10 posts.  


If i create a tempate for post types 1 it works great - all 10 posts from custom post type 1 have the custom post type 1 template.  


Then, I go to one of my posts in custom post type 2.  I unlock the template.  I make some changes. I save it as a new template name.  I load it onto the post in custom type 2.  AND...  the new template shows up in ALL of the posts that belong to custom post 1.  What am i doing wrong?


Share this post

Link to post
Share on other sites

Through what have you made the CPTs?


What happens when you apply the original CPT 1 template to a CPT 1 post?

Share this post

Link to post
Share on other sites



It is impossible for the Wp-Content/PostLoop section to display posts from another custom post type. Therefore, you're going to need to tell us how you have created your custom post types and what section are you using to display them.

Please search our forums, before posting!

Share this post

Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran+
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio+
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please?