Guest User

Untitled

a guest
Jan 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying all pages.
  4. * Template Name: Add Product Vendor
  5. * This is the template that displays all pages by default.
  6. * Please note that this is the WordPress construct of pages
  7. * and that other 'pages' on your WordPress site will use a
  8. * different template.
  9. *
  10. * @package Bober
  11. */
  12.  
  13. ?>
  14. <?php
  15.  
  16. acf_form_head();
  17.  
  18. get_header();
  19.  
  20. ?>
  21. <div id="content">
  22.  
  23. <?php
  24. global $woocommerce;
  25.  
  26. acf_form(array(
  27. $post_title = 'field_5a60022b402e2',
  28. $post_categ = 'field_5a60028e402e3',
  29. $post_descrip = 'field_5a600384402e4',
  30. $post_img = 'field_5a6005e1402e7',
  31. $post_price = 'field_5a61207ce5226',
  32. /*'post_title' =>true,
  33. 'post_content' => true,*/
  34. 'uploader' => 'basic',
  35.  
  36. 'post_id' => 'new_post',
  37. 'fields' => array($post_title, $post_descrip, $post_categ,$post_price, $post_img),
  38. 'new_post' => array(
  39. 'post_status' => 'draft',
  40. 'post_type' =>'product',
  41.  
  42. ),
  43. /*'fields' => array('field_5a60022b402e2', 'field_5a60028e402e3', 'field_5a600384402e4', 'field_5a6005e1402e7'),*/
  44.  
  45.  
  46. 'submit_value' => 'Add product'
  47. ));
  48.  
  49. ?>
  50.  
  51. </div>
  52.  
  53. <?php get_footer(); ?>
  54.  
  55. 'post_title' =>true,
  56. 'post_content' => true,
Add Comment
Please, Sign In to add comment