[theme-reviewers] Alternative to Custom Post Type for Theme Feature
Rohit Tripathi
rohitink at live.com
Sun Jun 22 08:05:51 UTC 2014
Yes. It sounds more like custom post meta. And since it's for presentation purposes only, it should be okay to use it.
Sent from my iPhone
> On 22-Jun-2014, at 4:52 am, "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