[acf_form
post_id="new_post"
field_groups="group_68a8af23d8327"
form_title="false"
submit_value="Generar mi Tarjeta Digital"
return="https://www.forconnectme.com/gracias/?nombre={field:empresa_nombre}"]
$nombre
$descripcion
Descargar Contacto (vCard)
HTML;
// === 5. Añadir botones solo si tienen valor ===
if (!empty($telefono)) {
$html .= " Llamar";
}
if (!empty($whatsapp)) {
$html .= " WhatsApp";
}
if (!empty($email)) {
$html .= " Correo";
}
if (!empty($website)) {
$html .= " Sitio Web";
}
if (!empty($facebook)) {
$html .= " Facebook";
}
if (!empty($twitter)) {
$html .= " Twitter";
}
if (!empty($linkedin)) {
$html .= " LinkedIn";
}
if (!empty($instagram)) {
$html .= " Instagram";
}
if (!empty($youtube)) {
$html .= " YouTube";
}
if (!empty($tiktok)) {
$html .= " TikTok";
}
if (!empty($mapa)) {
$html .= " Ubicación";
}
$html .= "
🎉 ¡Página creada con éxito!
"; echo "Nombre de la empresa: $nombre
"; echo "Nombre de la carpeta: $carpeta_nombre
Accede a tu página en:
"; echo ""; echo "✅ La página está disponible ahora en: $url_pagina