htmlburger / carbon-fields

WordPress Custom Fields Library ✨
https://carbonfields.net/
Other
1.39k stars 246 forks source link

Relationship Field: one2one and one2many #40

Open doup opened 8 years ago

doup commented 8 years ago

Right now relationship field works as one2many field even when using set_max(1). I could use a select field and populate it with the CPT that I want to link… but it's not as convenient as the relationship field.

Few ideas:

Ideally it should return [id1, id2, …] instead of [[id1], [id2], …].

bignall commented 8 years ago

I second this request.

yveveke commented 8 years ago

Same, I second this request

wkirby commented 7 years ago

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

wkirby commented 7 years ago

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