register_taxonomy(
'new-category',
'post',
[
'public' => false,
'rewrite' => false,
'show_ui' => true,
'show_in_rest' => true,
'hierarchical' => true,
]
);
When you create a new taxonomy, make sure you've set show_in_rest to true. Otherwise it will not appear in Block editor.
Hope this will help you ! Please let me know if this is not working for you !
Categories box not showing on post edit pages
in
Wordpress
- on Thursday, May 30, 2024, , 12:47 PM
- No comments
If you are stuck on this problem and trying to find a solution, just do one thing.
Labels:
Wordpress
Virender Bartwal
I am a digital marketing professional dedicated to assisting businesses in achieving success in the online realm ! With more than 10 yrs of hands-on experience in various areas such as SEO, local SEO, Analytics, and WordPress development, I have acquired a wealth of knowledge and proficiency. Additionally, I maintain this blog where I delve into these subjects, constantly seeking innovative methods to disseminate my expertise among fellow enthusiasts.
Twitter | LinkedIn | Website
Twitter | LinkedIn | Website