WordPress.org

Ready to get started?Download WordPress

Forums

Category Meta plugin
Meta fields don't display for custom taxonomies (3 posts)

  1. jaygoldman
    Member
    Posted 3 years ago #

    I've added an "order" field in the Category Meta Settings page for a custom taxonomy called "applications". Unfortunately, the field doesn't appear when I go to add a new term to the custom taxonomy.

    I've tracked the problem down to line 71 in wp-category-meta.php:

    $wptm_taxonomies=get_taxonomies('','names');

    Checking the value of $wptm_taxonomies shows me that it's not returning any of my custom taxonomies. That means your calls to register actions for _add_form_fields and _edit_form aren't getting called for custom taxonomies.

    Weirdly, line 162 in options.php does return them, so they are showing up in the drop-down on the Settings page:

    $taxonomies=get_taxonomies('','names');

    I tried passing array('_builtin' => false) as the first parameter and I got back an empty array. Passing array('public' => false) doesn't help either. Don't see anything in the docs about why it wouldn't return them either.

    Hope that's helpful!

  2. Jacob Dunn
    Member
    Posted 3 years ago #

    This is an issue with trying to list custom taxonomies before they are commonly created. I have added a fix here. Hope that helps!

  3. elebail
    Member
    Plugin Author

    Posted 3 years ago #

    Hello,

    I made a new version (1.2.2) with a fix on this point.
    Could you try it and tell me if it works ?

    Regards,
    Eric

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic