Open doup opened 8 years ago
I second this request.
Same, I second this request
This would be nice, in the meantime I've made some custom field types that should work. You can find them here: https://gist.github.com/wkirby/6ad67c0feb58ba7171cb2fe9a091985e
Since yesterday I've extracted the fields from that gist, along with some other standard ones we at Apsis, and bundled them into a plugin: https://github.com/apsislabs/carbon-fields-extensions
Right now relationship field works as
one2many
field even when usingset_max(1)
. I could use aselect
field and populate it with the CPT that I want to link… but it's not as convenient as therelationship
field.Few ideas:
relationship
field act asone2one
whenset_max(1)
. Also it could show only a dropdown instead of the two lists.one2one
relationships.Ideally it should return
[id1, id2, …]
instead of[[id1], [id2], …]
.