Suggestion
- This topic has 4 replies, 2 voices, and was last updated 1 year ago by
webdev.
-
AuthorPosts
-
April 9, 2018 at 6:42 PM #9132
webdev
ParticipantHi,
Before we started using MB, I'd been creating a Metabox Grouper class to combine related metaboxes or custom fields.
Turns out, MB has everything I was thinking of adding and more, but it's missing one tiny thing...
When I inserted a standard WP custom taxonomy, rather than create my own drop-down or select, as you've done, I simply called the WP functions:
post_categories_meta_box() and post_tags_meta_box()
which inserts the standard WP interface for adding terms. This has the advantage of allowing users to add new terms without leaving the 'Add new post type' screen.Could you add another option for the category and tag metaboxes to output the standard WP interface, as well as all the options you have?
Unless of course I'm missing something that would allow users to insert them from the post-new page already?
April 10, 2018 at 4:28 PM #9145Anh Tran
KeymasterHi,
The "adding new terms" is one thing that in my head for a long time. I'm stuck with the current UI of
taxonomy
field.Do you think an option is needed? As you can always use the default WP's UI and remove the
taxonomy
field from the meta box?April 10, 2018 at 10:21 PM #9155webdev
ParticipantI'm mainly thinking of when you want to have a taxonomy field in a metabox with other custom fields or taxonomies...
The main reason I started doing it is because I'm currently writing a plugin that has a LOT of taxonomies and custom fields for a custom post type, and the client wanted to group together related elements so as to avoid having so many metaboxes.
And it was really straight-forward using the functions I mention above. It would be useful for my purposes, but I can see it's a bit of an edge case 🙂
March 26, 2024 at 11:14 PM #45018webdev
ParticipantJust nudging this question, as I'm in a similar situation again. I've got a number of different taxonomies attached to a custom post type, and I'd like to group them together within a MB field group, but using the standard WP interface.
Can you add the option for standard category/tag interface to the options for rendering taxonomies (select, select_advanced, checkbox, etc) and just use the post_tags_meta_box and post_categories_meta_box callback embedded in the field group?
Or is it not that simple?
March 26, 2024 at 11:19 PM #45020webdev
ParticipantPS, I know there is the option of 'add_new' => true when defining the field in a fields group, but as this loads the whole backend screen including, description, slug, image, etc, I think it's too confusing for users and the standard WP interface would be far easier.
-
AuthorPosts
- You must be logged in to reply to this topic.