Viewing 3 reply threads
  • Author
    Posts
    • #6721
      unluckyxiii
      Member

      Wordpress 4.5.2
      Piklist 0.9.9.8
      Everything works fine except for Servings and Skill not saved. Thanks in advance for the help.

      <?php
      /*
      Title: Recipe Details
      Post Type: post
      Order: 1
      */
      piklist('field', array(
        'type' => 'text'
        ,'field' => 'youtube_embed'
        ,'label' => 'Youtube Embed'
        ,'attributes' => array( 'placeholder' => 'https://www.youtube.com/embed/vGuIdi__4kY' )
        ,'columns' => 12
      ));
      
      piklist('field', array(
        'type' => 'text'
        ,'field' => 'prep_time'
        ,'label' => 'Prep Time'
        ,'attributes' => array( 'placeholder' => '30 min' )
      ));
      
      piklist('field', array(
        'type' => 'text'
        ,'field' => 'cook_time'
        ,'label' => 'Cook Time'
        ,'attributes' => array( 'placeholder' => '1 hr 30 min' )
      ));
      
      piklist('field', array(
        'type' => 'text'
        ,'field' => 'servings'
        ,'label' => 'Servings'
        ,'description' => 'Example: 4 pax'
        ,'attributes' => array( 'placeholder' => '4' )
      ));
      
      piklist('field', array(
        'type' => 'select'
        ,'field' => 'skill'
        ,'label' => 'Skill'
        ,'description' => 'Choose difficulty level'
        ,'choices' => array(
          'Easy' => 'Easy'
          ,'Intermediate' => 'Intermediate'
          ,'Hard' => 'Hard'
        )
      ));
      
        piklist('field', array(
          'type' => 'text'
          ,'field' => 'ingredient'
          ,'add_more' => true
          ,'label' => __('Ingredients')
          ,'description' => 'Add more ingredients using the plus button'
          ,'columns' => 12
        ));
      
        piklist('field', array(
          'type' => 'text'
          ,'field' => 'instruction'
          ,'add_more' => true
          ,'label' => __('Instructions')
          ,'description' => 'Add more steps using the plus button'
          ,'columns' => 12
        ));
    • #6731
      Steve
      Keymaster

      @unluckyxiii– Welcome to the Piklist community!

      Try this >

    • #6734
      unluckyxiii
      Member

      Thanks Steve. It works!

      I shouldn’t have missed that from the documentation. Thanks again.

    • #6735
      Steve
      Keymaster

      You’re very welcome! Closing this ticket.

Viewing 3 reply threads
  • The topic ‘Fields not saved’ is closed to new replies.