[cfdb-table form="Formulario Arising" show="Submitted,from_name,Imagen,message" unbuffered="true"]
//require_once(ABSPATH . 'wp-content/plugins/contact-form-7-to-database-extension/CFDBFormIterator.php');
$exp = new CFDBFormIterator();
$exp->export($atts['Formulario Arising'], $atts);
while ($row = $exp->nextRow()) {
//echo '' . $row['from_name'] . '
';
if ($row['message'] != null) {
//echo '' . $row['Imagen'] . '
';
$fieldName = 'Imagen'; // change to name of your form's field that has a file
$fieldNameUrl = $fieldName . '_URL';
$fileName = $row[$fieldName];
//if (isset($row[$fieldNameUrl])) {
$fileUrl = $row[$fieldNameUrl];
// Make a link to the file
//printf('%s
', $fileUrl, $fileName);
// or embed file image
//printf('
', $fileName, $fileUrl);
//}
}
if ($row['message'] != null) {
//echo 'Website
';
//echo '' . $row['message'] . '
';
}
}
//} // if is_admin
?>