Last active
March 26, 2018 02:11
-
-
Save hwkdev/70a174e2e5250bf84aa53aaa0dedefef to your computer and use it in GitHub Desktop.
Article: https://hwk.fr/blog/acf-creer-un-formulaire-de-connexion-inscription-en-ajax-grace-acf-form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $current_user = wp_get_current_user(); | |
| acf_enqueue_scripts(); | |
| get_header(); | |
| ?> | |
| <?php if(have_posts()): ?> | |
| <?php while(have_posts()): the_post(); ?> | |
| <div class="col-md-12"> | |
| <h2>Bonjour, <?php echo $current_user->user_login; ?></h3> | |
| <?php acf_form('hwk_ajax_acf_account'); ?> | |
| </div> | |
| <?php endwhile; ?> | |
| <?php endif; ?> | |
| <?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment