novaramedia / novaramedia-com

Method is called but not defined PHP-E1002
Bug risk
Critical
2 years ago2 years old
Call to method add_field() on an unknown class class
 62*/
 63function createAboutColumnGroupFields($cmbInstance, $numberOfGroups, $title, $label) {
 64  for ($i = 0; $i < $numberOfGroups; $i++) {
 65    $group_field = $cmbInstance->add_field( array( 66      'id'          => 'about_page_team_group_' . sanitize_title($title) . '-' . ($i + 1),
 67      'type'        => 'group',
 68      'name'        => $title . ' (column ' . ($i + 1) . ')',
Call to method add_group_field() on an unknown class class
 75      ),
 76    ) );
 77  
 78    $cmbInstance->add_group_field( $group_field, array( 79      'name' => 'Role',
 80      'id'   => 'title',
 81      'type' => 'text',
Call to method add_group_field() on an unknown class class
 81      'type' => 'text',
 82    ) );
 83    
 84    $cmbInstance->add_group_field( $group_field, array( 85      'name' => 'Name',
 86      'id'   => 'name',
 87      'type' => 'textarea_code',
Call to method the_post() on an unknown class WP_Query
 55
 56  $posts = array();
 57  while ( $the_query->have_posts() ) :
 58    $the_query->the_post(); 59    $id = $the_query->post->ID;
 60    $meta = get_post_meta($id);
 61
Call to method have_posts() on an unknown class WP_Query
 54} else {
 55
 56  $posts = array();
 57  while ( $the_query->have_posts() ) : 58    $the_query->the_post();
 59    $id = $the_query->post->ID;
 60    $meta = get_post_meta($id);