WordPress.org

Support

Support » Plugins and Hacks » Category Meta plugin » [Plugin: Category Meta plugin] Meta fields don't display for custom taxonomies

[Plugin: Category Meta plugin] Meta fields don't display for custom taxonomies

  • 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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is an issue with trying to list custom taxonomies before they are commonly created. I have added a fix here. Hope that helps!

    Plugin Author elebail

    @elebail

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Category Meta plugin] Meta fields don't display for custom taxonomies’ is closed to new replies.
Skip to toolbar