コード例 #1
0
    function add_acf_form_to_post($content)
    {
        if (is_singular(array("cases", "persons", "organizations", "objects"))) {
            if (function_exists('acf_form')) {
                ob_start();
                ?>
		        <section id="data_acf_post" class="cases-box">
		          <div class="cases-box-header">
		            <h1>Данные</h1>
		            <hr />
		          </div>
		          <div class="cases-box-content" id="cases_add_data">
		            <?php 
                acf_form();
                ?>
		          </div>
		        </section>
		        <?php 
                $html = ob_get_contents();
                ob_get_clean();
                return $content . $html;
            }
        }
        return $content;
    }
コード例 #2
0
 static function render_form($id, $update, $second_category, $second_field_group)
 {
     while (have_posts()) {
         the_post();
         acf_form(array('post_id' => $id, 'new_post' => array('post_category' => array(4, $second_category), 'post_status' => 'publish'), 'field_groups' => array(1065, $second_field_group, 1131), 'post_title' => true, 'submit_value' => 'Submit', 'updated_message' => $update));
     }
 }
コード例 #3
0
 public function plugin_settings_page_content()
 {
     do_action('acf/input/admin_head');
     do_action('acf/input/admin_enqueue_scripts');
     $options = array('id' => 'acf-form', 'post_id' => 'options', 'new_post' => false, 'field_groups' => array('acf_awesome-options'), 'return' => admin_url('admin.php?page=smashing_fields'), 'submit_value' => 'Update');
     acf_form($options);
 }
コード例 #4
0
function acp($atts)
{
    extract(shortcode_atts(array('post_type' => 'post', 'taxonomy' => '', 'term_id' => '', 'acf_id' => ''), $atts));
    $post_data = 'apc' . ':' . $atts['post_type'] . ':' . $atts['taxonomy'] . ':' . $atts['term_id'];
    $args = array('post_id' => $post_data, 'field_groups' => array($atts['acf_id']));
    echo '<div class="acp_container">';
    acf_form($args);
    echo '</div>';
}
コード例 #5
0
function tsm_do_create_post_form()
{
    // Bail if not logged in or able to post
    if (!(is_user_logged_in() || current_user_can('publish_posts'))) {
        echo '<p>You must be a registered author to post.</p>';
        return;
    }
    $new_post = array('post_id' => 'new', 'field_groups' => array(7, 9), 'form' => true, 'html_before_fields' => '', 'html_after_fields' => '', 'submit_value' => 'Place Order', 'updated_message' => 'Saved!');
    acf_form($new_post);
}
コード例 #6
0
ファイル: functions.php プロジェクト: hujiyama/wordpress
function sm_process_repeat_order()
{
    // Verify a nonce has been set, else don't run the script
    if (!isset($_POST['sm_nonce']) || !wp_verify_nonce($_POST['sm_nonce'], 'sm-nonce')) {
        die('Permissions check failed');
    }
    $author = $_POST['author'];
    $pid = $_POST['pid'];
    $args = array('form_attributes' => array('id' => 'repeat-form'), 'post_id' => '', 'field_groups' => array(1784), 'html_before_fields' => '', 'html_after_fields' => '
            <input type="hidden" class="text" id="set_repeat_uid" name="set_repeat_uid" value="' . $author . '">
            <input type="hidden" class="text" id="set_repeat_oid" name="set_repeat_oid" value="' . $pid . '">', 'return' => add_query_arg('repeat', '1', get_permalink($pid)), 'submit_value' => 'Order');
    $output = acf_form($args);
    die($output);
}
コード例 #7
0
function acf_contact_shortcode($atts)
{
    $a = shortcode_atts(array('id' => 1), $atts);
    $form_id = $a['id'] - 1;
    $forms = get_field('forms', 'option');
    $f = $forms[$form_id];
    $title = 'New Form Submission';
    //This is a temporary page title, which will change when fields are saved.
    $post = array('post_type' => $f['post_type'], 'post_status' => 'publish', 'post_title' => $title);
    $form = '<div id="acf_contact' . $f["group"] . '">';
    $form .= "</div>";
    //Move form down to content
    $form .= "<script>jQuery(function(\$) {\n\t\t\t\t\t\$('#acf_contactform" . $f["group"] . "').appendTo('#acf_contact" . $f["group"] . "');\n\t \t\t\t  });</script>";
    echo '<div id="acf_contactform' . $f["group"] . '">';
    acf_form(array('submit_value' => $f["submit_text"], 'return' => $f["return_url"], 'post_id' => 'new_post', 'new_post' => $post, 'uploader' => 'basic', 'field_groups' => array($f["group"])));
    echo '</div>';
    return $form;
}
コード例 #8
0
    </div>
    <div class="container">
	    <div class="form-group">
	        <div class="well">
	          <label>
	            What is the name of your App?
	          </label>
	          
	          <form id="insert_term" name="insert_term" method="post" action=""> 
	
			    <input type="text" value="<?php 
echo $app_name;
?>
" name="term" id="term" class="form-control" /> 
			    
			    <input type="hidden" name="update" id="update" value="<?php 
echo $update;
?>
" />
			
				</form> 
	        </div>
        </div>
        <hr>

	    <?php 
acf_form(array('post_id' => $basic_post, 'form_attributes' => array('id' => 'basic_form', 'action' => '', 'method' => 'post'), 'field_groups' => $group, 'submit_value' => __("Submit your answers", 'acf'), 'return' => home_url('the-results')));
?>
    </div> 
    <?php 
get_footer();
コード例 #9
0
ファイル: category.php プロジェクト: hujiyama/wordpress
        ?>
 新規</h2>

	<?php 
        $cat = wp_get_object_terms($post->ID, 'status');
        $cat = $cat[0];
        $cat_termname = $cat->name;
        $cat_term = $cat->term_id;
        $termset = '78';
        //完了のIDをセット
        echo $cat_termname;
        if ($termset == $cat_term) {
            $my_post = array('post_status' => 'publish', 'post_id' => $post_id, 'post_author' => $user_ID, 'post_category' => array("{$cat_ID}"), 'new_post' => array('post_name' => array($post_id), 'post_title' => true, 'validation' => true, 'field_groups' => array('group_556d83105301a ', "{$description}"), 'html_before_fields' => '
								<input  type="hidden" id="acf-_post_title" class name="acf[_post_title]" value="作業申請" >'), 'submit_value' => '提出', 'return' => '%post_url%?foo=bar');
            wp_update_post($my_post);
            acf_form($my_post);
        } else {
        }
        ?>




依頼IDを発行してから提出となります。
<?php 
    }
    ?>

<!-- /pager	 -->
<?php 
} else {
コード例 #10
0
ファイル: acf.php プロジェクト: Aftonbladet/wa-fronted
 /**
  * Get html for acf field form
  * @param  string $field_key acf field key (non prefixed)
  * @param  mixed $post_id
  * @return string             html
  */
 public function wa_get_acf_form($field_key = false, $post_id = false)
 {
     $is_ajax = false;
     if (isset($_POST['field_key'])) {
         $is_ajax = true;
         $field_key = $_POST['field_key'];
         $post_id = $_POST['post_id'];
         if (intval($post_id)) {
             $post_id = intval($post_id);
         }
     }
     $form_id = 'acf-form-' . $field_key;
     $redirect_uri = isset($_POST['redirect']) ? $_POST['redirect'] : $_SERVER['REQUEST_URI'];
     $options = array('id' => $form_id, 'post_id' => $post_id, 'fields' => array($field_key), 'return' => $redirect_uri);
     ob_start();
     acf_form($options);
     $output = ob_get_clean();
     $return = array('form_id' => $form_id, 'output' => $output);
     if ($is_ajax) {
         wp_send_json($return);
     } else {
         return $return;
     }
 }
コード例 #11
0
ファイル: page-backup.php プロジェクト: spokehq/agcnwo
while (have_posts()) {
    the_post();
    ?>
				<?php 
    get_template_part('content', 'page');
    ?>
			<?php 
}
// end of the loop.
?>
	
	
	
	<?php 
if (is_page('Profile')) {
    acf_form(array('post_id' => 'user_' . $current_user->ID, 'field_groups' => array(130, 261), 'submit_value' => 'Update Profile'));
}
//$user_id = 1;
//$password = '******';
//wp_set_password( $password, $user_id );
?>
	
	

<?php 
// Get current user object
$current_user = wp_get_current_user();
// Get the last login time of the user
$last_login_time = get_user_meta($current_user->ID, 'last_login', true);
$post_date = get_the_date('m/d/y');
// WP_Query with post modified time
コード例 #12
0
?>
  <?php 
if (have_posts()) {
    ?>
      <?php 
    while (have_posts()) {
        the_post();
        ?>
        <section class="left_proposer">
            <div class="text">
              <h2>Proposez nous votre recette</h2>
              <?php 
        the_content();
        ?>
            </div>
        </section>
        <section class="form_proposer">
          <?php 
        acf_form_head();
        ?>
          <?php 
        acf_form(array('id' => 'contact-form', 'post_id' => 'new_post', 'new_post' => array('post_type' => 'recette', 'post_status' => 'draft'), 'post_title' => 'true', 'post_content' => 'true', 'submit_value' => 'Proposez !', 'updated_message' => 'Recette envoyée !', 'return' => ''));
        ?>
        </section>
        <div class="clear"></div>
    <?php 
    }
    ?>
  <?php 
}
get_footer();
コード例 #13
0
?>
				
<div id="primary" class="container">
	<div id="content" class="site-content" role="main">

		<?php 
/* The loop */
?>
		<?php 
while (have_posts()) {
    the_post();
    ?>
		
		<h1 class="landing__title container"><?php 
    the_title();
    ?>
</h1>

			<?php 
    acf_form(array('post_id' => 'new_post', 'new_post' => array('post_type' => 'support_group', 'post_status' => 'draft'), 'post_title' => true, 'submit_value' => 'Submit your support group', 'updated_message' => 'Thank you. Your group has been submitted for review and will be available publicly shortly. For questions or concerns, please contact <a href="mailto:idetaeye@afsp.org">idetaeye@afsp.org</a>.'));
    ?>

		<?php 
}
?>

	</div><!-- #content -->
</div><!-- #primary -->

				<?php 
get_footer();
コード例 #14
0
		<?php 
/* The loop */
?>
		<?php 
while (have_posts()) {
    the_post();
    ?>
		
		<h1 class="landing__title container"><?php 
    the_title();
    ?>
</h1>

			<?php 
    acf_form(array('post_id' => 'new_post', 'new_post' => array('post_type' => 'survivor_day', 'post_status' => 'draft'), 'post_title' => true, 'submit_value' => 'Submit your Survivor Day Organizer Application/Event Registration', 'updated_message' => '<h2>Thank you. Your Survivor Day Organizer Application/Event Registration has been submitted for review. For questions or concerns, please contact Inge De Taeye at <a href="mailto:idetaeye@afsp.org">idetaeye@afsp.org</a>.</h2>'));
    ?>

		<?php 
}
?>

	</div><!-- #content -->
</div><!-- #primary -->
<script>
var title = document.getElementsByTagName('label');
  title[1].innerHTML = "Where would you like to organize a Survivor Day 2016 event (city, state/province, country)? *";

//helpful date code comes from http://stackoverflow.com/questions/1531093/how-to-get-current-date-in-javascript
var today = new Date();
var dd = today.getDate();
コード例 #15
0
ファイル: new-quilt.php プロジェクト: jdozierezell/afsp
		<?php 
while (have_posts()) {
    the_post();
    ?>
		
		<h1 class="landing__title container"><?php 
    the_title();
    ?>
</h1>
		
		<?php 
    the_content();
    ?>

			<?php 
    acf_form(array('post_id' => 'new_post', 'new_post' => array('post_type' => 'quilt_square', 'post_status' => 'draft'), 'post_title' => true, 'submit_value' => 'Submit your quilt square', 'return' => 'http://afsp.org/find-support/ive-lost-someone/digital-memory-quilt/thank-creating-quilt-square/'));
    ?>

		<?php 
}
?>

	</div><!-- #content -->
</div><!-- #primary -->
<script type="text/javascript">
	var title = document.getElementsByTagName('label');
  title[1].innerHTML = "Quilt Square Title or Name of Person Lost";
</script>

				<?php 
get_footer();
コード例 #16
0
while (have_posts()) {
    the_post();
    ?>
				
				<div class="entry-content">
                <h1 class="pagetitle"><?php 
    the_title();
    ?>
</h1>
                
				<?php 
    the_content();
    $return = get_bloginfo('url') . '/submit-an-event/submit-premium-event/pay-premium-event/';
    $formArg = array('id' => 'acf-premium-event-form', 'post_id' => 'new_post', 'return' => $return, 'post_title' => true, 'form' => true, 'fields' => array('event_date', 'end_date', 'event_start_time', 'event_end_time', 'event_contact', 'event_email', 'phone', 'cost_of_event', 'name_of_venue', 'venue_address', 'link_for_tickets_registration', 'website_link', 'details', 'choose_categories', 'event_image', 'event_type'), 'new_post' => array('post_type' => 'event', 'post_status' => 'pending', 'post_title' => 'My Event post', 'tax_input' => array('event_category' => 'premium')), 'submit_value' => 'Add My Event');
    //echo '<p>Start Date: ' . the_field("event_date") . '</p>';
    acf_form($formArg);
    ?>
                            
                </div><!-- entry content -->
                
                
			<?php 
}
// end of the loop.
?>

		</div><!-- #content -->
	</div><!-- #primary -->


<?php 
コード例 #17
0
<?php

/* Template Name: Add Recipe */
?>

<?php 
acf_form_head();
get_header();
?>

<h2 class="add-front-recipe"><?php 
echo the_title();
?>
</h2>

<?php 
acf_form(array('post_id' => 'new_post', 'post_title' => true, 'post_content' => true, 'new_post' => array('post_type' => 'recette', 'post_status' => 'pending'), 'submit_value' => 'Create a new article'));
?>

<?php 
get_footer();
コード例 #18
0
        echo '<div class="colors">';
        echo the_field('colors');
        echo '</div>';
        echo '</div>';
        echo '<div class="images  pure-u-1 pure-u-sm-1-2">';
        echo '<div class="mainImage" >';
        the_post_thumbnail();
        echo '</div>';
        echo '<div class="listImages">';
        echo the_field('images');
        echo '</div>';
        echo '</div>';
        echo '</div>';
        echo '</div>';
        echo '<div class="filters_data hidden_data">';
        acf_form();
        echo '</div>';
        echo '</div>';
        echo '</div>';
    }
    echo '</div>';
} else {
    // no posts found
    echo "No post found";
}
/* Restore original Post Data */
wp_reset_postdata();
?>

      </div>
      <div class="pure-u-1 pure-u-md-3-24"></div>
コード例 #19
0
ファイル: testpost.php プロジェクト: hujiyama/wordpress
    //form 情報
    $cat_info = get_category($cat);
    //フォーム内容情報カテゴリー
    $catslug = wp_specialchars($cat_info->slug);
    //カテゴリースラッグ
    $cat_ID = 72;
    // カテゴリーID
    //カテゴリーdiscriptionにてfield_group設定
    $description = category_description($cat_ID);
    // //スラッグ名表示
    // $catslug = $category->slug;
    ?>

                <?php 
    acf_form(array('post_id' => 'new_post', 'post_title' => false, 'field_groups' => array('group_556d83105301a ', 'group_55678698cd12a'), 'html_before_fields' => '
                    <input  type="hidden" id="acf-_post_title" class name="acf[_post_title]" value="作業申請" >
                ', 'html_after_fields' => '', 'new_post' => array('post_type' => 'post', 'post_status' => 'publish', 'post_author' => $user->ID, 'post_openid' => '新規', 'post_category' => array("{$cat_ID}")), 'return' => add_query_arg('updated', 'true', get_permalink()), 'submit_value' => __("提出", 'acf')));
    ?>


        

<!-- /pager  -->
<?php 
} else {
    echo 'ログインして申請を行って下さい';
}
?>


</div><!-- main-single -->
コード例 #20
0
				$signin = false;
			}
			// end login

			if ($signin){
			?>
			<?php 
/* The loop */
?>
			<?php 
while (have_posts()) {
    the_post();
    ?>

				<?php 
    acf_form(array('post_id' => 'new_r', 'field_groups' => array(4148), 'submit_value' => 'ЗАБРОНИРОВАТЬ', 'html_after_fields' => '<input type="hidden" name="post_type" value="room">'));
    ?>

			<?php 
}
?>
			<?php 
wp_reset_postdata();
?>
			<div class="hide">
			<script type="text/javascript">
					var employment = [[],[],[],[]];
					var barcode = '<? echo $barcode; ?>';
					var reg_barcodes = [[],[]];
			</script>
			<? 
コード例 #21
0
 function ppm_subscription_shortcode()
 {
     $lang = pll_current_language();
     if ($lang == 'en') {
         $thx_url = home_url('thank-you');
     } else {
         $thx_url = home_url('obrigado');
     }
     return acf_form(array('post_id' => 'new_post', 'new_post' => array('post_type' => 'inscricao', 'post_status' => 'publish'), 'return' => $thx_url, 'submit_value' => 'Enviar Inscrição'));
 }
コード例 #22
0
<?php

/* Template Name: Create BUX Case Study*/
?>

<?php 
acf_form_head();
get_header();
?>

  <main>
    <?php 
/* The loop */
?>
      <?php 
while (have_posts()) {
    the_post();
    ?>
      <?php 
    acf_form(array('post_id' => 'new_post', 'new_post' => array('post_type' => 'post', 'post_status' => 'publish', 'post_title' => true, 'post_content' => true), 'submit_value' => 'Submit'));
    ?>
      <?php 
}
?>

  </main>


  <?php 
get_footer();
コード例 #23
0
ファイル: formpage.php プロジェクト: hujiyama/wordpress
</h2>

		<?php 
$cat_info = get_category($cat);
$catslug = wp_specialchars($cat_info->slug);
?>


<?php 
while (have_posts()) {
    the_post();
    ?>

				<?php 
    acf_form(array('post_id' => 'new_post', 'id' => 'acf-form', 'post_title' => false, 'field_groups' => array('group_556d83105301a', "{$catslug}"), 'post_author' => $user->ID, 'html_before_fields' => '
				  <input type="hidden" name="staffnumber" size="30" id="title" placeholder="Enter title here" >
		          <input type="text" name="post_title" size="30" id="title" placeholder="Enter title here" >', 'html_after_fields' => '', 'new_post' => array('post_type' => 'post', 'post_status' => 'publish', 'post_author' => $user_ID, 'tags_input' => '新規'), 'return' => home_url('contact-form-thank-you'), 'submit_value' => __("提出", 'acf'), 'uploader' => 'wp'));
    $post_id = wp_insert_post($my_post);
    ?>

<?php 
}
?>


<!-- /pager	 -->



</div><!-- main-single -->
<div id="sidebar">
コード例 #24
0
function render_acfForm($content)
{
    if (!is_admin()) {
        global $post;
        $render_form = true;
        /* form are display only for pages and posts when edit */
        if ($post->post_type == 'page' || $_GET['pid'] != '' || $post->post_type == 'post') {
            /* Check frontend display checkbox */
            if (ACF_FRONTEND_DISPLAY == 'true') {
                /* GET OPTIONS */
                $args_id = afd_form_permision();
                $args = json_decode(urldecode(get_post_meta($args_id[0], '_meta_afd_form_render_box_alpaca', true)), true);
                $rule = get_post_meta($args_id[0], 'rule', true);
                if ($rule['param'] != 'post') {
                    return $content;
                }
                if ($_GET['acf_message'] != '') {
                    print_r('<div class="msg message">' . $_GET['acf_message'] . '</div>');
                } else {
                    /* render content before form */
                    //print_r($content);
                }
                /* edit user */
                $arg = array();
                if ($_GET['uid'] != '') {
                    if (current_user_can('manage_options')) {
                        $uid = $_GET['uid'];
                    } else {
                        $uid = get_current_user_id();
                    }
                    $arg = array('post_id' => 'user_' . $uid);
                }
                /* edit post */
                if ($_GET['pid'] != '') {
                    if (current_user_can('manage_options')) {
                        $pid = $_GET['pid'];
                    } else {
                        $post = get_post($_GET['pid']);
                        if ($post->post_author != get_current_user_id()) {
                            $content = '<div class="msg message">Access disabled</div>';
                            return $content;
                        }
                    }
                    $arg = array('post_id' => $pid);
                }
                // Display for login users
                if ($args['display_login'] == 'true') {
                    if (!is_user_logged_in()) {
                        $content = '<div class="msg message">Login to display form</div>';
                        return $content;
                    }
                }
                if ($args['submit_value'] != '') {
                    $arg['submit_value'] = $args['submit_value'];
                }
                $render_form = true;
            }
        }
    }
    if ($render_form == true) {
        ob_start();
        acf_form($arg);
        $form = ob_get_contents();
        ob_end_clean();
    }
    if ($args['in_content_pos'] == 'before') {
        return $form . $content;
    }
    if ($args['in_content_pos'] == 'disable content') {
        return false;
    }
    if ($args['in_content_pos'] != 'before') {
        return $content . $form;
    }
}
コード例 #25
0
<?php

if (get_field('option_vacation_notice', 'option')) {
    ?>
	
<div class="info">
	
	<?php 
    the_field('option_vacation_notice_text', 'option');
    ?>

</div>

<?php 
}
acf_form(array('post_id' => 'new_post', 'new_post' => array('post_type' => 'econsult', 'post_status' => 'publish'), 'field_groups' => array('group_54c8fbe67c657'), 'post_content' => false, 'return' => add_query_arg(array('econsult_sent' => 'true'), get_permalink()), 'submit_value' => 'Vraag een econsult aan'));
コード例 #26
0
ファイル: newpost.php プロジェクト: hujiyama/wordpress
<h1>フォームデータの送信</h1>


<?php 
    query_posts('posts_per_page=1');
    ?>
<!-- 申請ページフォーム1ページ -->
<?php 
    while (have_posts()) {
        the_post();
        ?>

        <?php 
        acf_form(array('post_id' => 'new_post', 'id' => 'acf-form', 'post_title' => false, 'field_groups' => array('group_556d83105301a', "{$description}"), 'post_author' => $user->ID, 'html_before_fields' => '
        <input  type="hidden" id="acf-_post_title" class name="acf[_post_title]" value="作業申請" >
              <input type="hidden" name="post_title" size="30" id="title" placeholder="Enter title here" >', 'html_after_fields' => '', 'new_post' => array('post_type' => 'post', 'post_status' => 'publish', 'post_author' => $user_ID, 'post_term' => array('raw'), 'post_category' => array("{$cat_ID}")), 'return' => home_url('contact-form-thank-you'), 'submit_value' => __("提出", 'acf'), 'uploader' => 'wp'));
        $post_id = wp_insert_post($post);
        ?>

<?php 
    }
    ?>


<!-- /pager  -->
<?php 
} else {
    echo 'ログインして下さい';
}
?>
コード例 #27
0
    ?>
		
		<?php 
    form_pass_fail($form, $id, 'single_form');
    ?>
	
	
        <p>
          <?php 
    echo form_description($form);
    ?>
        </p>
      </div>

	    <?php 
    acf_form(array('post_id' => $get_form, 'form_attributes' => array('id' => $form, 'action' => '', 'method' => 'post'), 'field_groups' => $group, 'submit_value' => __("Save and continue", 'acf'), 'return' => home_url('/app_name/' . $term->slug)));
    ?>
	
    </div> 
    <?php 
}
?>
    <script type="text/javascript">
	   (function ($) {
		    $(document).live('acf/setup_fields', function(e, div){
				// color change for select options
				$('.page-the-form .acf_postbox .field_type-select option:selected').each(function(){
			   
				   var selected_option = $(this).val();
				//   alert(selected_option);
				   if (selected_option <= -998) {
コード例 #28
0
ファイル: page-test-drive.php プロジェクト: npyramid/rugrids
				$signin = false;
			}
			// end login

			if ($signin){
			?>
			<?php 
/* The loop */
?>
			<?php 
while (have_posts()) {
    the_post();
    ?>

				<?php 
    acf_form(array('post_id' => 'new_td', 'field_groups' => array(4287), 'submit_value' => 'ЗАПИСАТЬСЯ', 'html_after_fields' => '<input type="hidden" name="post_type" value="car">'));
    ?>

			<?php 
}
?>
			<?php 
wp_reset_postdata();
?>
			<div class="hide">
			<script type="text/javascript">
				var locked = [[],[],[]];
				var barcode = <? echo $barcode; ?>;
				var barcodes = [];
			</script>
			<? 
コード例 #29
0
    ?>
            
        <h1 class="title"><?php 
    the_title();
    ?>
</h1>
            
        <?php 
    the_content();
    ?>
   

    	<?php 
    // Formulario ACF
    $options = array('post_id' => 'user_' . $user_ID, 'post_title' => true, 'field_groups' => array(1895), 'updated_message' => 'Información actualizada', 'submit_value' => 'Finalizar');
    ?>
		
		<?php 
    acf_form($options);
    ?>
                

    <?php 
}
// end of the loop.
?>

</section>

<?php 
get_footer();
コード例 #30
0
ファイル: page-new-post.php プロジェクト: smattiza/mental
										
	<div class="wrapper-inner section-inner thin">
	
		<div class="content">
	
			
			<?php 
    /* The loop */
    ?>
			<?php 
    while (have_posts()) {
        the_post();
        ?>

				<?php 
        acf_form(array('post_id' => 'new', 'field_groups' => array(81), 'submit_value' => 'Create Haiku'));
        ?>

			<?php 
    }
    ?>
		
			 
			
		</div> <!-- /content -->
		
	</div> <!-- /section-inner -->

</div> <!-- /wrapper -->
<?php 
} else {