Tagged: Admin Pages, save form
- This topic has 1 reply, 2 voices, and was last updated 7 years, 3 months ago by
Steve.
-
AuthorPosts
-
-
November 10, 2014 at 4:35 am #2698
ajayphpMemberHi,
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.
============ -
November 10, 2014 at 10:56 am #2707
-
-
AuthorPosts
- You must be logged in to reply to this topic.