[wp-testers] Question about custom taxonomies

Andrew Nacin wp at andrewnacin.com
Wed May 19 04:39:45 UTC 2010


Hi,

This mailing list is for alpha/beta testing of WordPress. You may have
better luck on the support forums at http://wordpress.org/support, or
potentially the wp-hackers list, which has gravitated to these kinds of
topics though that isn't the right venue either.

To briefly answer your first question, custom taxonomies have fine-grained
capability controls I would look into. For example authors cannot add
categories, they can only assign them.

For your second question, I have seen a plugin many versions ago that
converted the checkboxes of the category meta box to radio buttons (via JS,
I think), then also make sure that only one category is saved on the
backend.

On Wed, May 19, 2010 at 12:34 AM, Adam van den Hoven <
adam.vandenhoven at gmail.com> wrote:

> Hey all.
>
> I've created a custom taxonomy for my site and I've added terms to the
> taxonomy in my functions.php so that they are minimally populated from the
> get go. These taxonomies are not meant to be navigable but rather I'm
> hoping
> to use them to indicate which content treatments to apply (for instance by
> using a blue background for term "foo" and a green background for term
> "bar").
>
> I don't really want to allow content authors to manage the list of terms in
> the taxonomy, only to set which term applies to the content.
>
> Setting 'show_ui' to false takes away both the taxonomy managing elements
> and the ui to let you select a term for a content page.
>
> Is it possible to enable one but not the other?
>
> Also, is it possible to specify that only one value from a taxonomy can be
> selected?
>
> Thanks!
>


More information about the wp-testers mailing list