WordPress.org

Support

Support » Plugins and Hacks » More Taxonomies » [Plugin: More Taxonomies] Registering Hierarchical Taxonomies Incorrectly

[Plugin: More Taxonomies] Registering Hierarchical Taxonomies Incorrectly

  • I have encountered an instance where another plugin is checking if a taxonomy is hierarchichal.

    Hierarchical taxonomies from More Taxonomies do not seem to appear. This is because of the following:

    $taxonomy_info = get_taxonomy($taxonomy_name);
        if ($taxonomy_info->hierarchical !== TRUE) {
     ... some code that hides non-hierarchical taxonomies
        }

    Although the default value for the hierarchical property is ‘true’. When you update the taxonomy it sets it to the field value ‘1’ (I think).
    I believe this may be because it is registering it as a number and not as a boolean.

    I have updated their plugin to:

    $taxonomy_info = get_taxonomy($taxonomy_name);
        if ($taxonomy_info->hierarchical != TRUE) {
     ... some code
        }

    but thought it may be one to consider for compatibly with other plugins too.

    http://wordpress.org/extend/plugins/more-taxonomies/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: More Taxonomies] Registering Hierarchical Taxonomies Incorrectly’ is closed to new replies.
Skip to toolbar