Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The template for displaying all pages.
- * Template Name: Add Product Vendor
- * This is the template that displays all pages by default.
- * Please note that this is the WordPress construct of pages
- * and that other 'pages' on your WordPress site will use a
- * different template.
- *
- * @package Bober
- */
- ?>
- <?php
- acf_form_head();
- get_header();
- ?>
- <div id="content">
- <?php
- global $woocommerce;
- acf_form(array(
- $post_title = 'field_5a60022b402e2',
- $post_categ = 'field_5a60028e402e3',
- $post_descrip = 'field_5a600384402e4',
- $post_img = 'field_5a6005e1402e7',
- $post_price = 'field_5a61207ce5226',
- /*'post_title' =>true,
- 'post_content' => true,*/
- 'uploader' => 'basic',
- 'post_id' => 'new_post',
- 'fields' => array($post_title, $post_descrip, $post_categ,$post_price, $post_img),
- 'new_post' => array(
- 'post_status' => 'draft',
- 'post_type' =>'product',
- ),
- /*'fields' => array('field_5a60022b402e2', 'field_5a60028e402e3', 'field_5a600384402e4', 'field_5a6005e1402e7'),*/
- 'submit_value' => 'Add product'
- ));
- ?>
- </div>
- <?php get_footer(); ?>
- 'post_title' =>true,
- 'post_content' => true,
Add Comment
Please, Sign In to add comment