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

Chip Bennett 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
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140621/4ace3c2a/attachment.html>


More information about the theme-reviewers mailing list