[theme-reviewers] Per-Post Layout Options

Daniel Fenn danielx386 at gmail.com
Tue Aug 9 13:26:19 UTC 2011


I dont see why not, everything else need to have a theme slug, I dont
see why this is any different

On 09/08/2011, Chip Bennett <chip at chipbennett.net> wrote:
> 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.
>
> Chip
>
> 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>
>> wrote:
>> > I am considering adding post meta to allow for per-post layout
>> > selection.
>> It
>> > is simple enough to implement; however, here's my question: would this
>> cross
>> > the content/presentation line? Or expressed differently: would it be
>> > inappropriate to add Theme-specific custom post meta in this manner,
>> given
>> > 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
>> feature.
>>
>> -Otto
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>


-- 
Regards,
Daniel Fenn


More information about the theme-reviewers mailing list