CMB2-Snippet-Library icon indicating copy to clipboard operation
CMB2-Snippet-Library copied to clipboard

CMB2 Code Snippet Library

Results 19 CMB2-Snippet-Library issues
Sort by recently updated
recently updated
newest added
trafficstars

I made an theme option page And i have a sample to change the colour of background as like your example But the default values are not applied it need...

I set up an autocomplete field type using the following example: https://github.com/WebDevStudios/CMB2-Snippet-Library/blob/master/custom-field-types/autocomplete-field-type.php ![Screenshot_2020-04-05 Add a New Post ‹ Old Realtybloc — WordPress](https://user-images.githubusercontent.com/31434218/78472951-30532380-7752-11ea-8908-6e3d0ddfe730.png) First when I click on the first row...

I want to edit the Custom Post Type in three ends, but I don't know how to do it. Only codes have been shared here. Is there a case study?

I tried to use the [snippet for validation of required fields](https://github.com/CMB2/CMB2-Snippet-Library/blob/master/javascript/cmb2-js-validation-required.php), but it doesn't seem to be working. I'm not getting any errors (front end or console). It just doesn't...

Hi Guys, I wonder if its possible to replace a CMB2 field with another based on another plugins activation that contains a fully customized field. Plugin 1 * CORE Plugin...

I am trying to make group fields work at widgets area First I added a new loop to add group fields correctly: ```php public function cmb2( $saving = false )...

When I have multiple copies of this function* - each for one frontend form - this is necessary modification. \* like: wds_handle_frontend_new_post_form_submission() wds2_handle_frontend_new_post_form_submission() …

Hello, I have both a question, but also an idea for snippet if others feel it is of any value. **GOAL:** save as terms instead of meta in a _frontend...

Hello, I'm testing this widget class as I'd like to implement a custom widget that allow me to create an array of images to iterate in a customised slider. I've...

This snippet: https://github.com/CMB2/CMB2-Snippet-Library/blob/master/options-and-settings-pages/options-pages-with-tabs-and-submenus.php - will work correctly on PHP 5.4 and above, because of this `$cmb->options_page_keys()[0]`. Older PHP will fatal.