Forum Replies Created
-
AuthorPosts
-
bjoernsMemberSame for me. I cannot even show a tab. What’s working fine for custom post types, doesn’t work with users. I tried to copy code from piklist demos, but this doesn’t help.
March 11, 2016 at 4:06 am in reply to: Bug in ' Show ID's on edit screens for Posts, Pages, Users, etc.' #6061
bjoernsMember@sbruner: As far as I can remember, it occured with the https://www.admincolumns.com/ Plugin and with https://de.wordpress.org/plugins/wp-members/.
bjoernsMember@efegue: Your solution hint is very appreciated. Thanks for it. I found another thread from August 2015, where the solution is very similar. The only difference: It uses the unset-function, so that the field gets ignored by the Events Manager-Post Meta-Save-Function:
add_action('em_event_save_meta_pre', 'prevent_double_serialization_by_em_and_piklist'); function prevent_double_serialization_by_em_and_piklist($event) { unset( $event->event_attributes['field_name_of_the_piklist_add_more_field'] ); }
@sbruner: I think this topic can be marked as resolved with the exception of the post 5960 from nakanaa above.February 18, 2016 at 5:15 am in reply to: BUG: Group field in custom post type doesn't load properly when editing #5952
bjoernsMember
bjoernsMemberThanks for the hint, Steve. But it doesn’t work. I made a 2-minute-screencast, which shows, what’s happening: Youtube.
bjoernsMemberHi Donna
Just the same for me. What’s even more strange: If I use the following group field for standard posts, then it gets wrong serialized, but despite of that its data shows up correctly. If I use the field in a custom post type (for the event custom post type of https://de.wordpress.org/plugins/events-manager/), then its data doesn’t show up.
<?php /* Title: Weitere Durchführungstage Post Type: event Context: side Priority: high Order: 2 Meta box: true */ piklist('field', array( 'type' => 'group' ,'field' => 'weitere_tage' ,'scope' => 'post_meta' ,'description' => 'An welchen weiteren Tagen findet dieser Kurs statt?' ,'columns' => '12' ,'add_more' => true ,'fields' => array( array( 'type' => 'datepicker' ,'label' => __('Datum') ,'scope' => 'post_meta' ,'field' => 'weiterer_tag_datum' ,'attributes' => array( 'class' => 'text' ) ,'options' => array( 'dateFormat' => 'dd.mm.yy' ,'firstDay' => '1' ,'changeYear' => true ,'yearRange' => "-0:+5" ,'changeMonth' => true ,'constrainInput' => true ,'monthNamesShort' => [ "Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez" ] ,'dayNamesMin' => [ "So", "Mo", "Di", "Mi", "Do", "Fr", "Sa" ] ) ,'columns' => '6' ) ,array( 'type' => 'text' ,'field' => 'weiterer_tag_beginn' ,'scope' => 'post_meta' ,'label' => __('Start') ,'value' => '08:00' ,'columns' => '3' ) ,array( 'type' => 'text' ,'field' => 'weiterer_tag_ende' ,'scope' => 'post_meta' ,'label' => __('Ende') ,'value' => '17:00' ,'columns' => '3' ) ) ));December 8, 2015 at 1:21 pm in reply to: More than one file upload field in add_more group fails to save #5266
bjoernsMemberHi Steve
Thank you very much. It works now well. There is only a new bug concerning validation and a very minor bug concerning display of pdf. Both are shown in a very short screencast: https://youtu.be/77JTmiJRwEQ.
Kind regards
BjörnDecember 8, 2015 at 4:06 am in reply to: More than one file upload field in add_more group fails to save #5259
bjoernsMemberHi Steve
Thank you for looking into this issue. In my last post I forgot to mention, that my code was only an excerpt of a “bigger” field array. But nevertheless I tried your code, but it doesn’t work neither.
Instead of many words I made a screencast of the weird things happening: https://youtu.be/U1llFRJAIs8. I hope, you can help me solving this. By the way: I’m using version 0.9.4.29 of piklist in a multisite environment (plugin is activated network wide).
Kind regards
BjörnDecember 4, 2015 at 1:07 pm in reply to: Editor field in repeatable group does not appear when clicking plus button #5228December 3, 2015 at 5:48 am in reply to: Editor field in repeatable group does not appear when clicking plus button #5209
bjoernsMemberHi Steve
I tried now without grouping, but then it’s even worse: I created two “Diplom/Zeugnis” (see code above) and in each of them I attached a pdf (see code above with field ‘ausbildung_zeugnis_pdf’) and an image (ausbildung_zeugnis_bild). This worked, but after publishing the two “Diplom/Zeugnis” are gone and I also don’t see in the post_meta-database table any entries.
Is this also a bug or am I doing things the wrong way?
Kind regards
BjörnDecember 3, 2015 at 5:39 am in reply to: Editor field in repeatable group does not appear when clicking plus button #5208
bjoernsMemberHi Steve
Has the bugs with file upload in group fields been resolved? Because I’m also having very strange things happening when using the following code. For the moment I will try with ungrouping the field.
Kind regards
Björnarray( 'type' => 'group' ,'field' => 'ausbildung_zeugnis' ,'label' => __('Diplom/Zeugnis') ,'columns' => '12' ,'add_more' => true ,'fields' => array( array( 'type' => 'text' ,'field' => 'ausbildung_zeugnis_bezeichnung' ,'label' => __('Bezeichnung') ,'columns' => '6' ,'help' => __('Wie heisst das Zeugnis? Entspricht normalerweise dem Dateinamen') ), array( 'type' => 'file' ,'field' => 'ausbildung_zeugnis_pdf' ,'label' => __('PDF','piklist') ,'columns' => '3' ,'help' => __('Bitte laden Sie hier das Zeugnis als PDF-Datei hoch') ,'options' => array( 'modal_title' => __('PDF hinzufügen','piklist') ,'button' => __('PDF hinzufügen','piklist') ) ,'validate' => array( array( 'type' => 'limit', 'options' => array( 'min' => 1, 'max' => 1 ) ) ) ), array( 'type' => 'file' ,'field' => 'ausbildung_zeugnis_bild' ,'label' => __('Titelbild','piklist') ,'columns' => '3' ,'help' => __('Bitte laden Sie hier ein Titelbild der PDF-Datei hoch') ,'options' => array( 'modal_title' => __('Bild hinzufügen','piklist') ,'button' => __('Bild hinzufügen','piklist') ) ,'validate' => array( array( 'type' => 'limit', 'options' => array( 'min' => 1, 'max' => 1 ) ) ) ) ) ), -
AuthorPosts