Forum Replies Created
-
AuthorPosts
-
SteveKeymasterGreat. Closing ticket.
SteveKeymaster@liquidws– We really appreciate the review. Thanks so much!
As for Simple Directory Plugin, we pulled a function out of the beta, but it looks like some plugins are using it.
Add this to the bottom of class-piklist-admin.php, BEFORE the final closing bracket.
public static function responsive_admin() { if (version_compare($GLOBALS['wp_version'], '3.8', '>=' )) { return true; } else { return false; } }That should fix the Simple Directory Plugin.
SteveKeymaster@s1r0n– Showing tags is the same as showing categories. However, the real name of tags, is
post_tag. Make sure you are using that.
SteveKeymaster@adrianm– I took a look at your code. You may have to manipulate the WordPress $menu and $submenu globals directly. Here’s a tutorial that should help.
SteveKeymaster@michaellautman– This is an interesting idea. We will think about putting it in future versions of Piklist.
For now, you can just use some standard WordPress code and the Piklist admin-notice partial.
Add this to your main plugin file or your theme’s functions.php. This does not go in the field file.
function my_validation_success() { if (isset($_GET['message'])) { $field_to_validate = get_post_meta(get_the_id(), 'YOUR-FIELD-NAME', true); if(!empty($field_to_validate)) { piklist('shared/admin-notice', array( 'type' => 'updated' ,'notices' => 'License validation successful' )); } } } add_action('admin_notices', 'my_validation_success');I’m using $_GET[‘message’] to determine if the post is updated, but you can probably find a better way.
Let me know if this works for you.
SteveKeymaster@liquidws– I just emailed you the latest beta 0.9.5u which allows for this. It extends the limit validation rule.
Add this to your field configuration:
,'validate' => array( array( 'type' => 'limit' ,'options' => array( 'min' => 3 ,'max' => 3 ,'count' => 'characters' ) ) )We definitely appreciate the kind words, but we already Piklist is awesome. 😉
If you could let the world know by leaving a 5 star review on WordPress.org it would really help promote the project.
SteveKeymaster@justin– It looks like you are using our beta and found a bug.
-open includes/class-piklist-universal-widget.php
-in the functionregister_widgets_callback()look for this line:,'part' => $path . '/' . $part
-change it to,'part' => $path . $partThat should fix it.
SteveKeymaster@liquidws– Welcome to the Piklist community!
When you create a group field you don’t have to assign the entire group to field (i.e. member_phone_group).
1) Assigning the group to a field.
If you assign the entire group to a field like you did, then that field is an array, and all the other fields are part of it:Array ( [member_phone_areacode] => Array ( [0] => 212 ) [member_phone_three] => Array ( [0] => 555 ) [member_phone_four] => Array ( [0] => 1212 ) )2) Not assigning the group to a field.
You don’t have to assign a group to a field. By removing'field' => 'member_phone_group', all the other fields will save individually (not part of an array), and they can be accessed normally.Does that make sense?
Your new code would be:
piklist('field', array( 'type' => 'group' //,'field' => 'member_phone_group' ,'label' => 'Phone' ,'list' => false // ,'description' => 'A grouped field. Data is not searchable, since it is saved in an array.' ,'fields' => array( array( 'type' => 'text' ,'field' => 'member_phone_areacode' ,'columns' => 1 ,'attributes' => array( 'placeholder' => '956' ) ) ,array( 'type' => 'text' ,'field' => 'member_phone_three' ,'columns' => 2 ,'attributes' => array( 'placeholder' => '333' ) ) ,array( 'type' => 'text' ,'field' => 'member_phone_four' ,'columns' => 3 ,'attributes' => array( 'placeholder' => '4444' ) ) ) ));
SteveKeymaster@adrianm– I don’t think I understand the issue 100%, but you don’t need to use piklist_admin_pages to add a settings page. You can do using standard WordPress functions. Would that help?
If not, please zip up you code and email to [email protected] so we can take a look.
SteveKeymaster@leonardotessaro– I just emailed you our latest beta with instructions how to create your own field, where you can inclue your javascript. Let me know if you have any questions.
SteveKeymaster@adrianm– I just emailed you the latest beta with instructions on how to do this. Let me know if you have questions.
SteveKeymasterBug confirmed.
However, there is a workaround. You can lock the meta box if you also disable the “meta-box look”. Try this in the comment block:
Lock: true Meta box: false
Hope that helps.
SteveKeymaster@upside– Glad to help!
We would appreciate it if you could tell the world how awesome Piklist is by leaving us a 5 Star review on WordPress.org. It really helps promote Piklist.
Thanks!
SteveKeymaster@upside– Welcome to the Piklist community!
Bug confirmed! Seems to be an issue with the basic file field in an add_more.
I was able to get it working with the Media Upload field using our latest beta which I emailed to you. Then use this code:
piklist('field', array( 'type' => 'group' ,'field' => 'box_repeater' ,'add_more' => true ,'fields' => array( array( 'type' => 'file' ,'field' => 'upload_basic' ,'columns' => 12 ,'label' => __('Add File(s)','piklist') ,'description' => __('This is the basic upload field.','piklist') ,'options' => array( 'basic' => false ,'multiple' => false ) ) ,array( 'type' => 'text' ,'field' => 'tc_box_title' ,'columns' => 6 ,'attributes' => array( 'placeholder' => 'box title' ) ) ,array( 'type' => 'text' ,'field' => 'tc_box_url' ,'columns' => 6 ,'attributes' => array( 'placeholder' => 'box url' ) ) ) )); -
AuthorPosts