WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] only one register_taxonomy works when defining multiple (2 posts)

  1. Umbercode
    Member
    Posted 2 years ago #

    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"?

  2. Umbercode
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.