Viewing 2 reply threads
  • Author
    Posts
    • #7397
      jessemarco
      Participant

      This works, but I have to click on submit 2 times to save the post.

      <?php
      /*  
      Title: New Blog Post
      Method: post
      Message: Your blog post has been successfully saved. 
      Logged in: true
      */
      
      piklist('field', array(
        'type' => 'text'
        ,'scope' => 'post' // post_title is in the wp_posts table, so scope is: post
        ,'field' => 'post_title'
        ,'label' => __('Title', 'piklist-demo')
        ,'attributes' => array(
          'wrapper_class' => 'post_title'
          ,'style' => 'width: 100%'
        )
      ));
      
      // Submit button
      piklist('field', array(
        'type' => 'submit'
        ,'field' => 'submit'
        ,'value' => 'Submit'
      ));
    • #7398
      jessemarco
      Participant

      Standart post need to be set with isset

      if(isset($_POST['my_var'] {)){}

      where to do this?

    • #7402
      jessemarco
      Participant

      SOLUTION:
      In settings page turn off “Javascript Validation”

Viewing 2 reply threads
  • The topic ‘click 2 times before submission post’ is closed to new replies.