[theme-reviewers] Alternative to Custom Post Type for Theme Feature
chip at chipbennett.net
Sun Jun 22 01:39:24 UTC 2014
If it's not something that can be accomplished via post custom meta
(similar to layout options), then I would suggest making it a Plugin.
I would consider what you're describing to be user-created configurations -
and configurations that aren't Theme-specific (basically, they rearrange
things inside of the post container).
On Sat, Jun 21, 2014 at 6: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
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the theme-reviewers