by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Justin Sternberg
@jtsternberg
oh, you're trying to output a metabox on the frontend, not the field values
Mauricio Santillan
@mau_mrs_twitter
that's right
Justin Sternberg
@jtsternberg
Mauricio Santillan
@mau_mrs_twitter
Do I always need to use a post-ID?
I need to get it done in A
ALL posts
Justin Sternberg
@jtsternberg
Your best bet would be to open a new support request on the wp.org support forums and share all the code you are using as well as describe what you are trying to accomplish. https://wordpress.org/support/plugin/cmb2
to post your code, it's best to link out to pastebin or a gist
Mauricio Santillan
@mau_mrs_twitter
Ok! Thanks for the help!
Justin Sternberg
@jtsternberg
👍
Leon Francis Shelhamer
@twoelevenjay
I have a repeatable group field. In this field I have a WYSIWYG field. Everything works fine unless, I add more than a certain amount of text to the WYSIWYG field. If I add 1 paragraph it saves, if I had several paragraphs it erases everything on save. Does anyone else have any experience with this bug?
Justin Sternberg
@jtsternberg
Which branch are you using? Until the development branch is merged, that is not supported at all by CMB2.
by "that", I mean using WYSIWYG in a repeatable group.
If you can replicate the issue on trunk, you may want to fill out a github issue
Leon Francis Shelhamer
@twoelevenjay
Ahhh, I thought that was "as repeatable field"...
I am using .org plugin
However, I have it narrowed down to this text is causing it, nt the amount of text: "So where do these programs fail at the most? 
The Candida yeast is being killed TOO FAST!"
Justin Sternberg
@jtsternberg
ah yah, the docs are not clear that it's not supported in groups
Sounds like an environment bug. Can you repeat the issue on a fresh WP install w/ only CMB2 activated and WP default theme?
(and preferably the trunk branch)
Leon Francis Shelhamer
@twoelevenjay
Still happened, I using a custom plugin to define the meta boxes, let me trip that down too just in case
Yeah still happening.
I will try with trunk
Leon Francis Shelhamer
@twoelevenjay
Still happened, with trunk, twentysixteen, and only cmb2 active.
Leon Francis Shelhamer
@twoelevenjay
It looks like hidden characters are causing it.
Yup hidden character!!! I hate Word. "
". In between those quotes is the character that cost me several hours of debugging. You can't see it but if you use the back space, you can tell it is there.
Justin Sternberg
@jtsternberg
ha, yes, hidden characters are the devil
andrew-ok7
@andrew-ok7
Hi y'all, was wondering if someone could point out some examples of repeatable groups for users
Justin Sternberg
@jtsternberg
Should be the same as the repeatable group example but use 'user' in the 'object_types' parameter.
The example in example-functions.php
cggit
@cggit
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
cggit
@cggit
i resorted to removing the commas via SQL with the posts_orderby filter but is there a more elegant way?
dkcreatto
@dkcreatto
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:
Sergey Mochalov
@proweb
hello guys
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?
Justin Sternberg
@jtsternberg
@proweb CMB2 file uploader works the same way as it does elsewhere, so your pdf thumbnails should be created automatically.
Sergey Mochalov
@proweb
but how to get preview on upload?
blob
Justin Sternberg
@jtsternberg
CMB2 does not support that feature yet.
do you see that the thumbnails are created and used in the media library?
Sergey Mochalov
@proweb
just a second I check it
Sergey Mochalov
@proweb
no
pdf image generation in 4.7 beta not working
or use lib which not on my server
with this plugin - https://wordpress.org/plugins/pdf-image-generator/ - all work, and images create
but with core - no one image was generated