WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] only one register_taxonomy works when defining multiple

[Resolved] only one register_taxonomy works when defining multiple

  • Adam
    Member

    @umbercode

    I am creating a plugin on a new, clean install of WP.
    I have the following code: http://pastebin.com/JgaxrGb8
    And nothing else (except a flush_rewrite_rules in the activation hook).

    When activating the plugin, the Product Post Type shows up as a menu option and the Product category Taxonomy also shows up in that menu. The Product type and the Product tag however do not.
    As far as I can see, all the code is the same? I must be missing something. Can anyone help me out as to why only the second registered taxonomy gets “registered”?

Viewing 1 replies (of 1 total)
  • Adam
    Member

    @umbercode

    Found the problem. I forgot to set the capabilities properly (manage_options).

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] only one register_taxonomy works when defining multiple’ is closed to new replies.