Skip to content

Instantly share code, notes, and snippets.

@jmarreros
Created March 14, 2018 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmarreros/2d0600e477ce2443df751c1b2ad173ea to your computer and use it in GitHub Desktop.
Save jmarreros/2d0600e477ce2443df751c1b2ad173ea to your computer and use it in GitHub Desktop.
<?php
/*
Template Name: Página Contacto
*/
get_header(); ?>
<div class="wrap">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
if ( isset($_GET['sent']) ){
if ( $_GET['sent'] == '1'){
echo "<p> ✔ Formulario enviado correctamente</p><br>";
}
else {
echo "<p> Hubo un error al enviar</p><br>";
}
}
?>
<form method="post" action="<?php echo admin_url( 'admin-post.php' ) ?>" >
<label for="name">Nombre:</label>
<input type="text" name="name" id="name" required>
<br>
<label for="email">Correo:</label>
<input type="email" name="email" id="email" required>
<br>
<label for="message">Mensaje:</label>
<textarea name="message" id="message" cols="30" rows="10" required></textarea>
<br>
<input type="hidden" name="action" value="process_form">
<input type="submit" name="submit" value="Enviar">
</form>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- .wrap -->
<?php get_footer();
@annieruci
Copy link

Como podria hacerlo para el Tema massive-dynamic ya que el fichero page.php no se divide en secciones y solo aparece la funcción pixflow_generate_page('page'); que te carga toda la pagina

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment