Forum Replies Created
-
AuthorPosts
-
Sander SchatMemberThanks Steve!
Sander SchatMemberThanks Steve,
that seems to be the trick.But since what version is this then?
I am pretty confused that this suddenly appears.
Sander SchatMemberyes, i too am starting to feel concerned about the activity from Piklist.
It is a great product, but the ‘silence’ is making me a bit worried now.I hope that ANY sound is given soon.
IF they cancel it, too bad, but at least we know then(gosh, sounds like a relationship almost… “tell me!!! i need to know” )
🙂
Sander SchatMemberhooray : )
Thanks Steve!
Sander SchatMemberyes agreed.
It took my about 5 minutes to find some ‘basic’ file settings again:This was not intuïtief at all.
Also the search for ‘file structure’ did not give any links back.
Hope this gets a bit better structured in the future.
But as always, keep up the good work
Still love Piklist
Sander SchatMemberyes! thanks!!
this is a quick copy paste and seems to work:
piklist('field', array( 'type' => 'group' ,'label' => __('Address (Un-Grouped)', 'piklist-demo') ,'description' => __('An Un-grouped field. Data is saved as individual meta and is searchable.', 'piklist-demo') ,'fields' => array( array( 'type' => 'text' ,'field' => 'ungrouped_city' ,'label' => __('City', 'piklist-demo') ,'columns' => 6 ) ,array( 'type' => 'html' ,'label' => __('Opleiding', 'piklist-demo') ,'value' => "<button>X</button>" ) ) ,'on_post_status' => array( 'value' => 'lock' ) ));
Sander SchatMemberyes, exactly the same problem here! keys where off after ‘deleting’ some items in an add_more group
And the quick fix from user ndbe seems to work.
Hooraayy for this sharing ; )
Sander SchatMemberHi Steve, yes all projects are just running without any problems, so no news for a long time
Here some code for the user-column:
// add extra column to users // add_filter( 'manage_users_columns', 'usersColumn' ); function usersColumn( $columns ) { $new = array(); foreach ( $columns as $key => $title ) { if ( $key == 'posts' ) // Put the column before this column { $new['quiz_count'] = 'Aantal lessen'; } $new[ $key ] = $title; } unset( $new["posts"] ); return $new; } // add value to the extra vraag post_type column // add_filter( 'manage_users_custom_column', 'manage_users_custom_fields', 10, 3 ); function manage_users_custom_fields( $val, $column_name, $user_id ) { //$user = get_userdata( $user_id ); switch ( $column_name ) { case 'quiz_count' : $args = array( 'posts_per_page' => - 1, 'offset' => 0, 'category' => '', 'category_name' => '', 'orderby' => 'date', 'order' => 'DESC', 'include' => '', 'exclude' => '', 'meta_key' => '', 'meta_value' => '', 'post_type' => 'dquiz', 'post_mime_type' => '', 'post_parent' => '', 'author' => $user_id, 'post_status' => 'publish', 'suppress_filters' => TRUE ); $posts_array = get_posts( $args ); return count( $posts_array ); break; default: } return $val; } // Make it sortable // add_filter( 'manage_users_sortable_columns', 'users_sortable_column' ); function users_sortable_column( $columns ) { $columns['quiz_count'] = 'quiz_count'; return $columns; }It creates the column, and makes it sortable.
I didnt post the actual ‘ordering’ query. But no need for this here.
It just didnt show any value, when the “show IDS” was enabled in the helpers-plugin.
Sander SchatMemberfound something to get it working!
in the ‘first group’ i had to add a field as well
now it saves correctly
<?php /* Title: Blokken Post Type: oquiz Order: 20 */ piklist( 'field', array( 'type' => 'group', 'field' => 'blok', 'label' => 'Blok', 'add_more' => true, 'description' => 'De quiz wordt onderverdeeld in aangemaakte blokken', 'fields' => array(
Sander SchatMemberHi Steve,
thanks for your reply.
I am back at the ‘site’ and still have problems with this field.
(although i had it working with an older version)I have updated to latest version today,
and have this piece of code<?php /* Title: Blokken Post Type: oquiz Order: 20 */ piklist( 'field', array( 'type' => 'group', 'label' => 'Blok', 'add_more' => true, 'description' => 'De quiz wordt onderverdeeld in aangemaakte blokken', 'fields' => array( array( 'type' => 'text', 'field' => 'blok_titel', 'label' => 'Blok Titel', 'required' => true, 'columns' => 12 ), array( 'type' => 'textarea', 'field' => 'blok_introtext', 'label' => 'Blok introtext', 'columns' => 12 ), array( 'type' => 'textarea', 'field' => 'blok_outrotext', 'label' => 'Blok outrotext', 'columns' => 12 ), array( 'type' => 'group', 'field' => 'blok_vragen', 'add_more' => true, 'fields' => array( array( 'type' => 'select', 'field' => 'vraag', 'label' => 'vraag', 'choices' => get_questions(), 'columns' => 12 ) ) ), array( 'type' => 'file', 'field' => 'blok_image', 'label' => __( 'Image', 'piklist-demo' ), 'options' => array( 'modal_title' => __( 'Add File(s)', 'piklist-demo' ), 'button' => __( 'Add', 'piklist-demo' ) ), 'columns' => 12 ) ) ) );I am not able to save any entry now
When selecting one option from the dropdown,
after save, i have ‘0’ back as defaultAny thoughts?
Suggestions?
Sander SchatMembernot really,
it is a company-posttypeso a 1-to-many from the company-type to users.
not sure if this is possible. Was just checking. Would have been nice.
But oke if not
Sander SchatMemberThanks Steve!
Sander SchatMemberis it an ‘idea’ to have this as an extra option by default in Piklist?
I do this with every field just to make it clear to the user,
there is NO value selected when showing for the first time.
Sander SchatMemberyes, got it!
thanks for the ‘tip’
Sander SchatMemberyes, works. Thanks!
-
AuthorPosts