[theme-reviewers] Alternative to Custom Post Type for Theme Feature
Weaver Theme
weavertheme at gmail.com
Sat Jun 21 23:22:26 UTC 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140621/5584895b/attachment.html>
More information about the theme-reviewers
mailing list