[theme-reviewers] Alternative to Custom Post Type for Theme Feature

Jose Castaneda jomcastaneda at gmail.com
Sun Jun 22 01:34:06 UTC 2014


It sounds more like post meta than post type for me. Do keep in mind that's thinking on my break. ;) will have to ponder this a little more once I'm off @4am

Sent from my iPhone

> On Jun 21, 2014, at 4:22 PM, Weaver Theme <weavertheme at gmail.com> wrote:
> 
> Themes cannot use Custom Post Types, but I have a valid use case that has nothing to do with content and everything to do with presentation, and need help with my thinking process on this issue.
> 
> I have had user requests to add a custom page/post templating feature. For example (very shortened): %title% %content% %featured-image%, and so on would be replaced in the user defined template with the respective content of a page/post. They don't want to learn PHP to add a new page template via a child theme. This seems like a reasonable feature, and is really quite easy to implement.
> 
> To me, the obvious way to implement the user's template definitions is via a Custom Post Type (register_post_type). This is clearly a presentation feature - but with the user having very fine control over that presentation.
> 
> If not a Custom Post Type to implement the template definition, what is another reasonable approach that gives all the nice built-in functinality of a custom post type? There must be some elegant solution other that a textbox?
> 
> Thanks in advance for any suggestions for a different way to implement user presentation templates.
> 
> --
> 
> Bruce Wampler
> 
> 
> 
> 
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers


More information about the theme-reviewers mailing list