diff --git a/classes/class-pods-page-data.php b/classes/class-pods-page-data.php index b3c4a2e..1bf51ff 100644 --- a/classes/class-pods-page-data.php +++ b/classes/class-pods-page-data.php @@ -323,7 +323,11 @@ private function recurse_pod_fields( $pod_name, $field_options = array(), $prefi $pod = pods( $pod_name ); $recurse_queue = array(); - $all_pod_fields = array_merge( $pod->pod_data['object_fields'], $pod->fields() ); + if ( isset( $pod->pod_data['object_fields'] ) ) { + $all_pod_fields = array_merge( $pod->pod_data['object_fields'], $pod->fields() ); + } else { + $all_pod_fields = $pod->fields(); + } foreach ( $all_pod_fields as $field_name => $field ) {