Viewing 1 reply thread
  • Author
    Posts
    • #2698
      ajayphp
      Member

      Hi,

      I created a plugin with custom fields for non any post type.

      only few fields to save in db, independent of any wp tables etc.

      fields code:
      ++++++++++++++
      piklist(‘field’, array(
      ‘type’ => ‘text’
      ,’field’ => ‘text’
      ,’label’ => ‘Text Box’
      ,’description’ => ‘Field Description’
      ,’help’ => ‘This is help text.’
      ,’value’ => ‘Default text’
      ,’attributes’ => array(
      ‘class’ => ‘text’
      )
      ));

      piklist(‘field’, array(
      ‘type’ => ‘select’
      ,’field’ => ‘select’
      ,’label’ => ‘Select Box’
      ,’description’ => ‘Choose from the drop-down.’
      ,’help’ => ‘This is help text.’
      ,’attributes’ => array(
      ‘class’ => ‘text’
      )
      ,’choices’ => array(
      ‘option1’ => ‘Option 1′
      ,’option2’ => ‘Option 2′
      ,’option3’ => ‘Option 3′
      )
      ));
      ++++++++++

      I do ,’save’ => true then form action url was:
      http://192.168.1.5/piklist/wp-admin/options.php”

      so how could i access post data on submit , or how to change the action url of admin page or etc. Please advice here …?

      ===========
      BUG: if we do not want save button “‘save’ => false” , then js files not loaded
      and colorpicket etc not working in that case.
      ============

    • #2707
      Steve
      Keymaster

      @ajayphp– Sorry, I’m confused. Do you want to save POST data, or OPTIONS? You mention “post data”, but show a url ending in options.php.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.