Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@bubdev– Welcome to the Piklist community!
Congratulations! You found a small bug with our editor field. Luckily it’s easy to fix.
1) Open this file in the Piklist plugins folder:
piklist/parts/fields/editor.php. It should look like this >2) Remove this line:
,'editor_height' => 180, and save. You should be all set.The reason this happened is because Piklist set a default for
editor_height. The codex for wp_editor states that ifeditor_heightis set, then it will be used instead oftextarea_rows.We’ll make sure this is removed from the next version of Piklist.
SteveKeymaster@kattagami– You would use the Piklist hook
piklist_save_field-{$scope}Here’s how to get started:
1. Create your frontend form
2. You still have to define thescopefor each field, however, since you’re not saving the data choose something unique likecontact.'scope' => 'contact'
3. In your main plugin file include this code:function my_contact_form_email($fields) { piklist::pre($fields); die(); } add_action('piklist_save_field-contact','my_contact_form_email');When you save your form Piklist will trigger this function and you will see the array of field data that you have access to. Just loop through the array and create your mailer.
Let us know if this works for you.
SteveKeymaster@tatamata— I’m not 100% sure what Page 1 and Page 2 mean. It might be better if you zip up your plugin or theme and email to us at [email protected]
SteveKeymasterYou may have some corrupted data, so you may want to try and removing the setting.
-Take note of any WP Helpers options you have.
-Open the wp_options table in your database and remove this setting:piklist_wp_helpers
-Try saving again and see if it works now.November 12, 2015 at 12:25 pm in reply to: adding workflows causes sidebar meta-box to disappear #4947
SteveKeymaster@mcmaster– Workflows are actually designed to control the ENTIRE page, not just what’s under the tabs…even sidebar meta-boxes.
Just add the following to your meta-box header:
Tab: All Flow: Homepage Workflow
SteveKeymaster@mcmaster– Piklist can do it…in version 0.9.9.8. Hoping to release it soon.
Then you will create a new file in your meta-boxes folder and include code like this:
November 12, 2015 at 12:00 pm in reply to: Is it possible to hook a cpt to a custom admin page with piklist #4944
SteveKeymasterIn the latest beta take a look at this file:
wp-content/plugins/piklist/add-ons/piklist-demos/parts/forms/new-post-with-validation.phpThis is a form that creates a new post. You’ll notice the first field is hidden but sets the post_type to piklist_demo. You would just change that to dog.
piklist('field', array( 'type' => 'hidden' ,'scope' => 'post' ,'field' => 'post_type' ,'value' => 'dog' ));To include this form in your admin-page, you would use this code:
piklist('form', array( 'form' => 'new-post-with-validation' // name of the file without .php ));Does that make sense?
SteveKeymasterAll it does is tell you where the code is located to build that widget, meta-box, etc.
You don’t need this for your code. In the next version of Piklist I’ll include a comment.
See the attached screenshot.
Attachments:
You must be logged in to view attached files.
SteveKeymaster@erikkubica– Real sorry for the confusion. Hopefully, this is the last time we manage two different versions of Piklist. Here’s the doc for Workflows in 0.9.9.x
Essentially, you do three things:
1) Create a Workflow Header file: This goes in the /workflows/ folder, and tells the entire Workflow which pages to display on.2) Create a Workflow tab: This also goes in the /workflows/ folder, and is just a tab assigned to the header.
3) Assign your settings sections: These stay in your /settings/ folder. You should just have to add two parameters to the commment block:
TabandFlow. Here’s an example:Tab: My Tab Flow: My Flow
Does that make more sense?
SteveKeymaster@ndmurph04– Sorry this is causing you issues. The Add-More array change is big, and once you start working with it, you will love it. You can easily just pull the field and loop through it like a normal array.
Without seeing your code it’s hard to debug, but my guess is you should remove any [0] keys you have. So if you are looking for this in your code:
$my_field[0], just change it to this:$my_field.That alone has helped many users.
Let us know if you still need help.
SteveKeymaster@tatamata– If you change the choices array to something like this:
'choices' => array( 'one' => 'one' ,'two' => 'two' )
Does it work?
If so, then you are not constructing your array properly.
SteveKeymaster@wickyd– If you type something else into that field and save, does the admin bar greeting change?
SteveKeymasterGreat! Closing ticket
SteveKeymasterGreat. Closing ticket. Let us know if you need more help.
SteveKeymasterI just pushed a new version of WP Helpers, v1.9.2. Please let me know if it fixes your issue.
-
AuthorPosts