Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
sanaullahraiss
@sanaullahraiss
Can you please help?
Thank you./
arafat362
@arafat362
Hello!
Christophe Rudyj
@kuipou
Hi it's not much of question more than would I need help to make it more DRY https://gist.github.com/kuipou/6ddd8f713a760367c49337387d7a74e4
if someone would like to take stab at it would be awesome
ONNsl
@JosMbomio_twitter
hi hoow can i display pdf files for metabox in frontend
??
Justin Sternberg
@jtsternberg
Techn0J03
@Techn0J03
CM2 throwing warnings when changing from version 2.2.2.1 to 2.7.0
Here is one warning
Warning: include_once(/mnt/data/vhosts/casite-1301570.cloudaccess.net/httpdocs/wp-content/plugins/b2i-investor-tools/vendor/cmb2/includes/CMB2_Hookup.php): failed to open stream: No such file or directory in /mnt/data/vhosts/casite-1301570.cloudaccess.net/httpdocs/wp-content/plugins/b2i-investor-tools/vendor/cmb2/includes/helper-functions.php on line 44
Techn0J03
@Techn0J03
This line in version 2.7.0 was not in 2.2.2.0
if ( 'CMB2_REST' === $class_name || 0 === strpos( $class_name, 'CMB2REST' ) ) {
$path .= '/rest-api';
}
Justin Sternberg
@jtsternberg
@Techn0J03 the hookup.php error is this: CMB2/CMB2#1333 Just rename the file on your server from CMB2_hookup.php to CMB2_Hookup.php
Techn0J03
@Techn0J03
thank you for the info.
Meo Huynh
@meo8
Hello! I'm trying to embed an iframe within a WYSIWYG. It appears once the iframe is added, but when I save and preview, it doesn't show up on the frontend. Once I go into the backend, the iframe also disappears.

$cmb = new_cmb2_box( array(
'id' => $prefix . '09b_metabox',
'title' => __( '09B - WYSIWYG', 'cmb2' ),
'object_types' => array( 'page', ), // Post type
'show_on' => array( 'key' => 'page-template', 'value' => 'templates/uikit.php' ),
'context' => 'advanced',
'priority' => 'high',
'show_names' => true, // Show field names on the left
) );

// Regular text field
$cmb->add_field( array(
'name' => __( '', 'cmb2' ),
'id' => $prefix . '09B_wysiwyg_content',
'type' => 'wysiwyg',
) );

$cmb->add_field( array(
'name' => __( 'Remove padding', 'cmb2' ),
'id' => $prefix . '9B_less_padding',
'type' => 'checkbox',
) );

Jarius John
@jjohn198_gitlab
Hi, I was recently having issues with the newest update crashing my website with a "critical error" and wanted to know if this was an issue that has occurred before and how to fix it?
ashvin
@monparaashvin
i have 4+ exp theme customize and theme devlopment any work send me msg
fixed issues and error ping me...
Minimal.
@minimal-wbd
Hi everyone, i looking for method how to bound two group fields, I mean if I add new field to first group this field must be shown in second group, it's realy to make?
Justin Sternberg
@jtsternberg
@jjohn198_gitlab we'll nee more info. What is the error?
Jarius John
@jjohn198_gitlab
I believe it may have worked out. I was getting a "critical error" when I applied the most recent update but haven't had the issue afterwards.
Dissident Choir
@dissidentchoir_twitter

HI. I have setup an admin page and am using CMB2 to store the field information.
I used the code from the snippet library to do this. have done this dozens of times for sites. Usually is the easiest way to create admin controls. Never seen this issue.

I have 2 WYSIWYG fields on this page. All of the fields work and store data, but formatting only saves for the first WYSIWYG on the page.

when I save the admin page it refreshes and the content is still there, but all formatting is stripped from the second box.

Any Ideas?

satcoma
@satcoma
Hello, I don’t understand how to do this.
I have a field - (Status), which has two values, (For Rent. For Sale)
The question is how can I make it so that when I select one value, for example (rent), the fields related to the sale and on the reverse would not be displayed. Thank you.
lucasmattos014
@lucasmattos014
hello

<?php
$post_type_name = PREFIX . 'inducao';
$singular_label = 'Inducao';
$plural_label = 'Inducoes';
$slug = 'inducao';

$type = new CPT(
array(
'post_type_name' => $post_type_name,
'singular' => $singular_label,
'plural' => $plural_label,
),
array(
'supports' => array('title', 'thumbnail','multicheck'), // https://codex.wordpress.org/Function_Reference/post_type_supports
'has_archive' => true, // Define se o post type irá ser exibido no frontend do WordPress
'rewrite' => array('slug' => $slug), // Define como a URL do post type
'hierarchical' => true,
'capability_type' => 'page',
'labels' => array(
'all_items' => 'Todos ' . $plural_label,
'add_new' => 'Adicionar novo',
'add_new_item' => 'Adicionar novo ' . $singular_label,
'edit_item' => 'Editar ' . $singular_label,
'new_item' => 'Novo ' . $singular_label,
'view_item' => 'Ver ' . $singular_label,
'search_items' => 'Procurar ' . $singular_label,
'not_found' => 'Nada encontrado',
'not_found_in_trash' => 'Nada encontrado no lixo',
'options' => array(
'check1' => 'Check One',
'check2' => 'Check Two',
'check3' => 'Check Three',
),
)
);

// Icon
$type->menu_icon("dashicons-admin-tools
"); // https://developer.wordpress.org/resource/dashicons

I'm trying to add the selection field, but this is giving an error. Can you help me?
mahmoodb653
@mahmoodb653
hello
i'm working on a wordprss template and using CMB2 for metabox.
I want to release my theme in Themeforest Market.
Is there any problem such as licence or ... ?
thanks for helping me
Om Prakash Swami
@omprakashswami_gitlab
Hi, is there any meta field for audio/video file uplods?
Jose Martin Mbomio Edu
@jose19889
hey good day
Anas-Nagati
@Anas-Nagati
Hi Everyone, I'm struggling with the documentation page as the font is not the right color or size
how can I contact CMB2 team to help fix the font issue?
Justin Sternberg
@jtsternberg
The best place to view CMB2 docs is on the github wiki: https://gitter.im/WebDevStudios/CMB2