• Resolved tragichappy

    (@tragichappy)


    With this plugin, can I strip a WP post from all WP categories, and just have it attached to the new taxonomy I created instead?

    I thought that by creating a new taxonomy with this plugin, I could that. But I’m having issues.

    Please help.

    Here’s what I did.

    With this plugin installed, I created a new post type.

    Then I created a new taxonomy and attached it to the new post type.

    I used these instructions:

    https://www.wpbeginner.com/wp-tutorials/create-custom-taxonomies-wordpress/#create

    But that didn’t work. When I went to edit my post, I didn’t see any option for the plugin at all.

    So I detached the new taxonomy from that new post type I had created, and this time I attached the taxonomy to WordPress’ core post type.

    That did something. Now I can see the taxonomy box when I edit the post. But I can’t seem to do anything with the box. There’s just an option to add a new taxonomy. There doesn’t seem to be a way to attach this taxonomy to the post as you can with the category.

    Am I doing something wrong?

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

    (@tw2113)

    The BenchPresser

    I don’t think you’re doing anything wrong, but perhaps misunderstanding some things and how they work.

    Based on all the parts I’m hear, you have successfully registered a taxonomy and associated that taxonomy with your post type.

    There’s just an option to add a new taxonomy.

    For clarity sake, we’re actually talking about terms in the taxonomy. “category” is a taxonomy, and historically the terms in the “category” taxonomy have been called “categories”. Meanwhile “post_tag” is a taxonomy, and the terms with that one are just called “tags”. However, they’re all terms in their taxonomy.

    Back on point though, since it sounds like you are just seeing a text field for your taxonomy, it sounds like you left it as non-hierarchical. That means that you can start typing in a term, for example “comedy” if your taxonomy is “genre”. You type out “comedy” and hit enter and suddenly it shows that term with a little X next to it. What happened there is that you CREATED the term in the taxonomy, AND you also associated that term with that post. Two actions in one. Say you already created a genre term of “action” previously. You start typing in “act” and suddenly a little dropdown appears that you can click on and it shows like the previous term, with that little X next to it. In that case, you associated the “action” term with that post as well, but you didn’t create a new term.

    If you’re wanting checkboxes like you see when you’re using the out-of-box “categories” taxonomy, you’ll want to go back into your CPTUI settings and set the taxonomy to “hierarchical” true. That will give you the checkbox UI and you can also create parent/child relations between terms. Perhaps you want a sub-term of “slapstick” for your “comedy” term. This would be the way to do that.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Make any progress with this topic @tragichappy ?

    Thread Starter tragichappy

    (@tragichappy)

    Yes thanks. I figured it out. I had misconceived category for taxonomy and switched the two around.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Awesome to hear. Let us know if you need anything else.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do I attach taxonomy to my post (and replace the category)?’ is closed to new replies.