• Resolved mizukimadness

    (@mizukimadness)


    Hi!

    Thanks for a great plugin. I’ve got a problem, though.

    When I create a taxonomy, the custom post types I’ve created does not show up in the “attach to post type” box.

    The post types are also created with Custom Post Type UI.

    I haven’t encountered this issue before.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Are the post types you’re creating set to be public?

    We have this filter on the arguments for what gets listed in that “Attache to post type” section:

    /**
      * Filters the arguments for post types to list for taxonomy association.
      *
      * @since 1.0.0
      *
      * @param array $value Array of default arguments.
      */
    $args = apply_filters( 'cptui_attach_post_types_to_taxonomy', array( 'public' => true ) );
    

    The args correlate to what gets passed in as the first parameter for get_post_types(). If you need, I can help construct a quick filter that will make it also show non-public.

Viewing 1 replies (of 1 total)
  • The topic ‘Can’t attach taxonomy to custom post type’ is closed to new replies.