Forums

[resolved] Custom Post Types/Taxonomies as a plugin (2 posts)

  1. Jacorre
    Member
    Posted 6 months ago #

    Hello,

    I know there are plugins that help you create custom post types and taxonomies, but I wanted to create my own plugin where I can define the custom post types and taxonomies instead of putting it all in the theme's functions file since themes can change over time.

    I can get the custom post type to appear, but I'm having an issue with the taxonomies appearing.

    I tried to keep my code organized so I have the plugin file including other files. For example:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Within the taxonomies.php file, I have the register_business and register_business_type functions.

    Why is the post type displaying but not the taxonomy?

  2. Jacorre
    Member
    Posted 6 months ago #

    Figured it out. The show_ui was set to false.

Reply

You must log in to post.

About this Topic