[theme-reviewers] Per-Post Layout Options
chip at chipbennett.net
Tue Aug 9 13:06:30 UTC 2011
This is great advice, and probably something that should be added to the
Codex: prefix custom post meta fields with theme-slug. Anyone opposed to me
adding this to the Guideline regarding proper namespacing?
I would also add (as best-practice, or as a requirement?) that custom post
meta fields that are handled by metaboxes should be prefixed with an
underscore, so that they are hidden from the Custom Fields metabox.
On Mon, Aug 8, 2011 at 3:43 PM, Otto <otto at ottodestruct.com> wrote:
> On Mon, Aug 8, 2011 at 12:27 PM, Chip Bennett <chip at chipbennett.net>
> > I am considering adding post meta to allow for per-post layout selection.
> > is simple enough to implement; however, here's my question: would this
> > the content/presentation line? Or expressed differently: would it be
> > inappropriate to add Theme-specific custom post meta in this manner,
> > that such metadata would be mostly useless to the user after switching
> > Themes?
> Post meta for this use is fine, just prefix the meta key with your
> theme name so that it's obvious where the meta came from.
> Not necessary to offer a cleanup option as such, but might be a nice
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the theme-reviewers