• 0

DMS 2 Custom Post Type as a Template?


Question

Posted · Report post

I am playing around with some custom post types and have noticed that any changes I make to the structure of one post is then carried through all other post types.  Its like the post type is a template.  Is this just they way DMS works or is this possibly due to the custom post type plugin I am using. 

 

I am using Custom Post Type UI - https://wordpress.org/plugins/custom-post-type-ui/

 

If anyone knows a custom post type plugin that can create custom posts and also edits custom fields in the post in an automated way, I would be really keen to use something like that. 

 

Thanks!

Share this post


Link to post
Share on other sites

16 answers to this question

  • 0

Posted · Report post

Ah OK, so you want to have a different layout per post type in the case of my example, a different movie layout per movie, is that correct. If this is the case, then this is something that has come up as its not currently possible.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi,

 

I have just this moment create a Movies CPT and when I make a change to the movies single movie and made it full width - https://cloudup.com/cY_EBQvj7Jl

I then go to my standard post type (blog) single post and change the layout slightly i.e. comment form on the right, these changes do not effect the movie post type.

 

https://cloudup.com/cbahhe1aEgg

 

If you want to create custom post types and use custom fields, you should check out the following plugins.

 

http://wp-types.com/ ~ Link has both Types and Views.

http://www.advancedcustomfields.com/ ~ ACF is an awesome plugin

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for the links, Danny.  The problem I am encountering is that one change to one CPT effects all other posts in that CPT group.  To use your example, a change to the structure of the Hobbit page will take effect for all movies (i.e. Lord of the Rings, Lethal Weapon, etc.).  So if you moved that comment over on the Hobbit page, does it also change for all other movies?  This is what is happening with me.  If thats just how it works, no problem.  I will come up with a workaround.  But I wanted to make sure this is normal and not something on my end.   

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Yes Sir!  That's exactly what I was looking for.  Good to know its not just me.  I will adjust my content planning accordingly. Thanks, Danny!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I have added this to our tracker as a feature enhancement.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Danny Will this be added soon? My website's structure relies entirely on custom post types. I was unaware that DMS2 could not handle custom post types in this way. Custom Post Types have been fully supported in WordPress for a while now, so it'd make sense if a theme as advanced as DMS2 could utilize them fully.

 

If this change isn't added soon, then I will be forced to completely restructure my website, which I definitely don't want to do.

 

If at all possible, please provide a time frame for having the custom post type template changing issues fixed. Thanks!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

dboll I have used different layouts for different custom post types without any problem (Using Custom post types UI)

Additionally, if there is afeature like a gallery, I use the hide on this page facility under standard options, if I dont require it on that custom post

Share this post


Link to post
Share on other sites
  • 0

Posted (edited) · Report post

GetMeWebDesign Everything works fine for me as well with Custom Post Types UI, on the surface that is.

 

The problem is that whenever you change any part of the template that you are using for a custom post type, every other custom post type is also changed. It doesn't matter if you unlink/unlock, save as new template, etc. - all custom post types are always changed no matter what. That's what my problem is (all of my custom post type pages need to be slightly different from the others).

 

Have you found a way around this?

Edited by dboll

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

dboll Oh see what you mean. If you made changes to a highlight section for instance. In which case, no I cant do that. I rely on using wp content loop for changes like that and then hide generic features that apply to some but not all posts

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

dboll Are you saying that if you make a change to one Custom Post Type lets say Movies, these changes are also displayed on other custom post types such as Books ?

 

Or are you referring to what I mentioned above where you want to have a different layout per different individual custom post types such as Movie (for example) ?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Danny I'm referring to the latter 

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

OK, well for individual layouts on a single post type has been reported to our tracker.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Danny - Is there an update on this topic?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

There still isn't support for individual templates working on single posts or post types at the moment. Our developers are aware of this.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks Danny.  I have been trying different plugins to get this to work without success.  Was curious how close it was to being a feature... hopefully soon.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

It would be unlikely that any plugin would allow you to do with DMS unless it was built specifically to do so, as DMS templates are not the same as standard WordPress templates. In regards to when this will be implemented, I am unable to say as our developers do not give roadmaps. :(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now