Should be the same as the repeatable group example but use 'user' in the 'object_types' parameter.
The example in example-functions.php
is there a way to use orderby with cmb2's text_money? the commas are screwing things up for orderby meta_value and meta_value_num
i resorted to removing the commas via SQL with the posts_orderby filter but is there a more elegant way?
Hi, I'm looking for a way to create a taxonomy select on woocommerce product edit screen based on conditions to match current product with few term_meta fields. Example, show only the "active" (<-term_meta) "Collections" (<-taxonomy) of the "designer"(<-term_meta) which matches to the "author" (<-post_meta) of current product (<-woocommerce cpt). I checked a few ways but couldn't find any resolution. Can someone please guide? Thankx :smile:
have some questions about CMB2 associated with release wordpress 4.7
in new version as declarated if i upload PDF to post
I get: 1) file 2) thumbnail
so my question about file field in CMB2 If I upload PDF by this field, does it generate thumb for my PDF?
what can you say @jtsternberg ?
or file field work another way, not like "Upload thumbnail" in posts?
@proweb CMB2 file uploader works the same way as it does elsewhere, so your pdf thumbnails should be created automatically.
but how to get preview on upload?
CMB2 does not support that feature yet.
do you see that the thumbnails are created and used in the media library?
I use a date field like that: '$basic_box->add_field( array( 'name' => 'תאריך לידה', 'id' => $prefix . 'birthday', 'type' => 'text_date', 'date_format' => 'd/m/Y', ) );' And it doesn't save dates that have a day parameter greater then 12. am i doing something wrong?