CMB2 / cmb2-attached-posts

Custom field for CMB2 for attaching posts to a page.
GNU General Public License v2.0
135 stars 62 forks source link

Limit Selection Number #32

Open bitstarr opened 7 years ago

bitstarr commented 7 years ago

Hi, this is a feature request. Please add an option to limit the number of attached items. In my case, i only want the user to select one item. Other cases could be a row of four.

Thanks.

jtsternberg commented 7 years ago

I like this idea.

desrosj commented 7 years ago

This would be very useful.

sandrodz commented 7 years ago

This would be awesome.

lucrus73 commented 7 years ago

Me too. And, while you are at it (well, if), please store the id of the attached post as a simple number in the option meta, instead of an array of one element, thanks.

dariodev commented 7 years ago

Just came here to see if this is possible :)

OllieBrkr commented 7 years ago

This would be very handy.

remoblaser commented 7 years ago

Any news on this?

sandrodz commented 6 years ago

pretty please ^_^

mclaurent commented 6 years ago

hi

I have created a PR for this. Please let me know if this is good to be merged! https://github.com/CMB2/cmb2-attached-posts/pull/52 Cheers