2

I have a custom taxonomy which I want to behave in the same way that tags do on the post edit screen, instead of how categories appear. I have tried passing in the 'show_tagcloud' => true attribute, but it is still behaving like categories.

3
  • What does "it behaving like categories not tags" mean?
    – s_ha_dum
    Commented May 28, 2015 at 6:34
  • Means not as wordpress default tags
    – Chandresh
    Commented May 28, 2015 at 6:36
  • 3
    Set hierarchical to false when you register your taxonomy :-) Commented May 28, 2015 at 6:38

1 Answer 1

1

Pass this argument in register_taxonomy(),

'hierarchical' => false,
'_builtin'=>true,

or use following links

How to Add Tags to Custom Post Type?

Adding post tags to custom post types

2
  • I'm not so sure why you would set _builtin to true - are you sure this is correct?
    – shea
    Commented Jun 3, 2015 at 2:24
  • Also, those two links are unreleated to this question - they specify adding the built-in tags taxonomy to a custom post type, where as this question refers to making a custom taxonomy behave similar to the built-in tags taxonomy.
    – shea
    Commented Jun 3, 2015 at 2:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.