pods icon indicating copy to clipboard operation
pods copied to clipboard

"Add new" not working for taxonomy relationship field

Open JoryHogeveen opened this issue 4 years ago • 5 comments

Describe the bug See https://wordpress.org/support/topic/add-new-button-not-showing/

To Reproduce Steps to reproduce the behavior:

  1. Create a new taxonomy Pod
  2. Create a second Pod (anything)
  3. Add relationship field to the taxonomy Pod
  4. Make sure add new is allowed (field options)
  5. No add new button :(

JoryHogeveen avatar Mar 05 '20 14:03 JoryHogeveen

This shouldn't work, honestly. I don't think the ADD Term in Taxonomy Object is available to be called in that way (take a look at the current Taxonomy screen in WordPress). We'd have to either roll our own edit or some other method.

jimtrue avatar Mar 05 '20 14:03 jimtrue

Ah right, that sounds logical. Even though I'd say this should still be relatively simple to add such functionality. Or at least similar functionality as WP offers (name and parent only)

JoryHogeveen avatar Mar 05 '20 18:03 JoryHogeveen

Well, it should work if you can add term.php into the Modal which is the Edit Term form. I don't know if that's the Add Term window, though. edit_tags.php is the one that is shown for Add New. If you can turn off the 'terms' list on right when it's in the modal, that should work.

jimtrue avatar Mar 05 '20 21:03 jimtrue

Primarily because if we add term meta, we need to handle ALL of it, not just the first two ;)

jimtrue avatar Mar 05 '20 21:03 jimtrue

Currently the modal popup is the FULL admin page where Phil has just hidden the menu bars on the top and left side... Why wouldn't it be possible to do the same with terms?

And even if we just enable name and parent.. That is the same as WordPress does within post edit pages. Seems sufficient IMO. For more in depth editing users will go to the actual term-edit pages.

JoryHogeveen avatar Mar 06 '20 10:03 JoryHogeveen