Forum Replies Created
-
AuthorPosts
-
SteveKeymasterGreat. Closing ticket.
September 9, 2014 at 11:44 am in reply to: [Bug] Two file fields inside an add_more does not save correctly #2411
SteveKeymaster@simon– All fields in the
fieldsparameter need to be in an array. This will work:piklist('field', array( 'type' => 'group', 'template' => 'field', 'add_more'=> true, 'fields' => array( array( 'type' => 'file', 'field' => 'flavour-images', 'label' => 'Image(s)', ), array( 'type' => 'file', 'field' => 'flavour-nutrition-info', 'label' => 'Nutritional info', ) ) ));
SteveKeymaster@jason– I think we discussed this in another ticket, but you need to set reset to false to prevent this.
'reset' => 'false'
SteveKeymasterNice to know it wasn’t Piklist. 😉 Let us know if we can help further.
SteveKeymaster@jason- I can’t reproduce. This is working for me. See screenshot.
piklist('field', array( 'type' => 'html' ,'label' => 'HTML Field' ,'description' => 'First field' ,'value' => 'First value' )); piklist('field', array( 'type' => 'html' ,'label' => 'HTML Field 2' ,'description' => 'Second field' ,'value' => 'Second value' ));Attachments:
You must be logged in to view attached files.
SteveKeymasterGreat. Closing ticket.
SteveKeymaster'reset' => 'false'
September 8, 2014 at 12:31 pm in reply to: Code update in order to remove warning for settings pages #2384
SteveKeymaster@jmayhak– I believe this should work when there is no sub_menu defined.
,'notice' => isset($page['sub_menu']) ? !in_array($page['sub_menu'], array('options-general.php')) : falseWill release with next version.
September 8, 2014 at 11:13 am in reply to: My first wordpress plugin (LinkedIn Login) is piklist-based! #2380
SteveKeymasterHi Samer– This is awesome! Your question is a good one, so I added some information to the end of this tutorial.
You can see all these recommendations in action at the WP Helpers page >
Awesome job.
September 5, 2014 at 10:27 am in reply to: Do admin page setting changes require manage_options permission? #2378
SteveKeymasterAwesome. Closing ticket.
September 4, 2014 at 4:00 pm in reply to: Do admin page setting changes require manage_options permission? #2375
SteveKeymaster@jason– Thanks for flushing this out. Our docs have been updated >
September 4, 2014 at 2:51 pm in reply to: Do admin page setting changes require manage_options permission? #2372
SteveKeymaster@jmayhak– Based on this codex page, there is an additional filter needed when changing the capability which Piklist does not have. We will add this in a future version.
Since Piklist does everything the WordPress way, you can just use the instructions at the codex. Add this to your plugin file, replacing ‘menu_slug’ with the slug you set when you registered your page with Piklist.
function my_page_capability($capability) { return 'manage_scda'; } add_filter('option_page_capability_menu_slug', 'my_page_capability');Let us know if that worked.
September 2, 2014 at 1:02 pm in reply to: Manage Taxonomy and Term Meta data at Add new screen #2365 -
AuthorPosts