Forum Replies Created
-
AuthorPosts
-
shayneolMember“By George She’s got it!” v0.9.9.3 seems to have resolved the editor issue. I was able to add twenty repeated elements without issue. Thanks for all the hard work. I have a more complicated section that I need to try out with conditional logics and many Add_More/Editor fields, but as of right now it looks good. I’ll keep you updated.
Thanks again š
shayneolMemberHello Steve,
Thanks for all of the emails back and forth. I just finished resetting everything:
1) Deleted all files and database
2) Created new database and uploaded new files to the server
3) WordPress 4.3.1, Piklist 0.9.9.2
4) I first tried saving on the Twenty Fifteen theme and it worked fine
5) Then switched to my custom theme and the save feature worked fineIām not sure what was happening, but that issue seems to be resolved. Thanks a lot for your help on this.
Shayne
shayneolMemberHello Steve,
I just sent you a screencast of what I am doing.
Thanks
shayneolMemberI just emailed you a screencast of what I am doing. There is nothing special to the process. For this particular project, I am just starting out, so if you think I should re-upload all the files and use a new database, I can try that.
shayneolMemberOk. I just email it
shayneolMemberOk. I just email it
shayneolMemberI actually tried that right after submitting my last response. I just tried it again (removing ,’scope’ => ‘post’ from both the single editor and the editor within the group). It didn’t work š
shayneolMemberHello steve,
1) I changed the metabox code to the following text field:
<?php /* Title: Text Field Post Type: ug_calendar Order: 110 */ piklist('field', array( 'type' => 'text' ,'field' => 'text' ,'label' => __('Text', 'piklist-demo') ,'help' => __('You can easily add tooltips to your fields with the help parameter.', 'piklist-demo') ,'attributes' => array( 'class' => 'regular-text' ) ));2) Turned off all plugins
3) Turned on wp_debug and received several errors in regards to WP_Wdiget beging depricated
4) After fixing those errors, I still could not get the post to Publish
5) I switched to the Twenty Fifteen theme with the same results
6) I even tried redeclaring the Custom Post Type via WordPress’ regular means.function calendar_cpt() { $labels = array( 'name' => _x( 'Calendar', 'post type general name' ), 'singular_name' => _x( 'Calendar', 'post type singular name' ), 'add_new' => _x( 'Add New', 'Calendar' ), 'add_new_item' => __( 'Add New Calendar' ), 'edit_item' => __( 'Edit Calendar' ), 'new_item' => __( 'New Calendar' ), 'all_items' => __( 'All Calendar Items' ), 'view_item' => __( 'View Calendar' ), 'search_items' => __( 'Search Calendar' ), 'not_found' => __( 'No item found' ), 'not_found_in_trash' => __( 'No item found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Calendar' ); $args = array( 'labels' => $labels, 'description' => 'Upcoming Events', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, ); register_post_type( 'ug_calendar', $args ); } add_action( 'init', 'calendar_cpt' );7) I then downgraded to a Piklist version that I used in another project (v. 0.9.4.28) and Publishing the post was successful.
shayneolMemberHello Steve,
Yes, I’ve run the script. I’m using the exact same WordPress installation from this topic the you’re currently helping me out on (https://piklist.com/support/topic/piklist-wysiwyg-breaking-format-in-piklist-group/#post-4465).
Also, this Custom Post Type was just created and had no prior entries.
Thanks,
Shayne
shayneolMemberI used the following code. An editor with an Add_More, but NOT within a group seems to work correctly. When the editor is inside a group, unexpected things happen. For the following code, the Add_more is directly attached to the editor that is within a group. Instead of just being able to repeat the editor alone, it repeats the entire group when you click the “+” button. The entire group can be repeated more than ten times.
<?php /* Title: Editor Examples Post Type: page Order: 100 Lock: true */ // EDITOR ADD_MORE TEST piklist('field', array( 'type' => 'editor' ,'field' => 'test_editor_01' ,'scope' => 'post' ,'label' => 'TEST EDITOR 01' ,'add_more' => true ,'description' => __('This is the standard WordPress Editor, placed in a Metabox, which is placed in a Piklist WorkFlow tab. By default, Piklist formats the editor like any other field with a label to the left.', 'piklist-demo') ,'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' ,'options' => array( 'wpautop' => true ,'media_buttons' => true ,'shortcode_buttons' => true ,'tabindex' => '' ,'editor_css' => '' ,'editor_class' => '' ,'teeny' => false ,'dfw' => false ,'tinymce' => array( 'resize' => false ,'wp_autoresize_on' => true ) ,'quicktags' => true ,'drag_drop_upload' => true ) )); // GROUP ADD_MORE TEST piklist('field', array( 'type' => 'group' ,'field' => 'group_test' ,'label' => __('Address (Grouped)', 'piklist-demo') ,'list' => false ,'description' => __('A grouped field with a key set. Data is not searchable, since it is saved in an array.', 'piklist-demo') ,'fields' => array( array( 'type' => 'text' ,'field' => 'text01' ,'label' => 'TEXT 01' ,'required' => true ,'columns' => 4 ,'attributes' => array( 'placeholder' => 'Text 01' ) ) ,array( 'type' => 'text' ,'field' => 'text02' ,'label' => 'TEXT 02' ,'required' => true ,'columns' => 4 ,'attributes' => array( 'placeholder' => 'Text 02' ) ) ,array( 'type' => 'select' ,'field' => 'select_optgroup' ,'label' => __('Select with Option Groups', 'piklist-demo') ,'columns' => 4 ,'value' => 'third' ,'choices' => array( 'Group 1' => array( 'first' => __('First Choice', 'piklist-demo') ,'second' => __('Second Choice', 'piklist-demo') ,'third' => __('Third Choice', 'piklist-demo') ) ,'Group 2' => array( 'first' => __('First Choice', 'piklist-demo') ,'second' => __('Second Choice', 'piklist-demo') ,'third' => __('Third Choice', 'piklist-demo') ) ) ) ,array( 'type' => 'editor' ,'field' => 'test_editor_01' ,'scope' => 'post' ,'label' => 'TEST EDITOR 02' ,'add_more' => true ,'description' => __('This is the standard WordPress Editor, placed in a Metabox, which is placed in a Piklist WorkFlow tab. By default, Piklist formats the editor like any other field with a label to the left.', 'piklist-demo') ,'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' ,'options' => array( 'wpautop' => true ,'media_buttons' => true ,'shortcode_buttons' => true ,'tabindex' => '' ,'editor_css' => '' ,'editor_class' => '' ,'teeny' => false ,'dfw' => false ,'tinymce' => array( 'resize' => false ,'wp_autoresize_on' => true ) ,'quicktags' => true ,'drag_drop_upload' => true ) ) ) ));When I move the Add_more statement to the group instead of on the editor (see below), all items were enclosed within the repeating group as expected, but this time it wouldn’t let me add more than eleven items without the editor glitching.
<?php /* Title: Editor Examples Post Type: page Order: 100 Lock: true */ // EDITOR ADD_MORE TEST piklist('field', array( 'type' => 'editor' ,'field' => 'test_editor_01' ,'scope' => 'post' ,'label' => 'TEST EDITOR 01' ,'add_more' => true ,'description' => __('This is the standard WordPress Editor, placed in a Metabox, which is placed in a Piklist WorkFlow tab. By default, Piklist formats the editor like any other field with a label to the left.', 'piklist-demo') ,'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' ,'options' => array( 'wpautop' => true ,'media_buttons' => true ,'shortcode_buttons' => true ,'tabindex' => '' ,'editor_css' => '' ,'editor_class' => '' ,'teeny' => false ,'dfw' => false ,'tinymce' => array( 'resize' => false ,'wp_autoresize_on' => true ) ,'quicktags' => true ,'drag_drop_upload' => true ) )); // GROUP ADD_MORE TEST piklist('field', array( 'type' => 'group' ,'field' => 'group_test' ,'label' => __('Address (Grouped)', 'piklist-demo') ,'add_more' => true ,'list' => false ,'description' => __('A grouped field with a key set. Data is not searchable, since it is saved in an array.', 'piklist-demo') ,'fields' => array( array( 'type' => 'text' ,'field' => 'text01' ,'label' => 'TEXT 01' ,'required' => true ,'columns' => 4 ,'attributes' => array( 'placeholder' => 'Text 01' ) ) ,array( 'type' => 'text' ,'field' => 'text02' ,'label' => 'TEXT 02' ,'required' => true ,'columns' => 4 ,'attributes' => array( 'placeholder' => 'Text 02' ) ) ,array( 'type' => 'select' ,'field' => 'select_optgroup' ,'label' => __('Select with Option Groups', 'piklist-demo') ,'columns' => 4 ,'value' => 'third' ,'choices' => array( 'Group 1' => array( 'first' => __('First Choice', 'piklist-demo') ,'second' => __('Second Choice', 'piklist-demo') ,'third' => __('Third Choice', 'piklist-demo') ) ,'Group 2' => array( 'first' => __('First Choice', 'piklist-demo') ,'second' => __('Second Choice', 'piklist-demo') ,'third' => __('Third Choice', 'piklist-demo') ) ) ) ,array( 'type' => 'editor' ,'field' => 'test_editor_01' ,'scope' => 'post' ,'label' => 'TEST EDITOR 02' ,'description' => __('This is the standard WordPress Editor, placed in a Metabox, which is placed in a Piklist WorkFlow tab. By default, Piklist formats the editor like any other field with a label to the left.', 'piklist-demo') ,'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' ,'options' => array( 'wpautop' => true ,'media_buttons' => true ,'shortcode_buttons' => true ,'tabindex' => '' ,'editor_css' => '' ,'editor_class' => '' ,'teeny' => false ,'dfw' => false ,'tinymce' => array( 'resize' => false ,'wp_autoresize_on' => true ) ,'quicktags' => true ,'drag_drop_upload' => true ) ) ) ));
shayneolMemberI think I was premature in the last statement. After I submitted the comment, I noticed that for the last group, the “,’add_more’ => true” statement was directly associated with the editor instead of the entire group. Like that, the entire group (two text boxes, one select, and one editor) repeated fine. I could add as many repeated items as I wanted. However, when I moved the “,’add_more’ => true” statement to the group itself, I then could not add more than ten repeated items without the editor glitching as before.
š sorry
shayneolMemberThe new files you added to WordPress.org worked great for the Piklist Demo, but I was still having issues with adding more than ten items to a add_more group. I decided to use the new demo file code (see below) instead of my previous code and everything seems to be working now. Thanks for all of your help and providing this great plugin.
**p.s. Using the code below, the description for the last editor field fell outside of the entire group box/area even if there was another field after the editor. Just letting you know since you’re collecting all bugs that we find. Thanks again.
<?php /* Title: Editor Examples Post Type: page Order: 100 Lock: true */ // EDITOR ADD_MORE TEST piklist('field', array( 'type' => 'editor' ,'field' => 'test_editor_01' ,'scope' => 'post' ,'label' => 'TEST EDITOR 01' ,'add_more' => true ,'description' => __('This is the standard WordPress Editor, placed in a Metabox, which is placed in a Piklist WorkFlow tab. By default, Piklist formats the editor like any other field with a label to the left.', 'piklist-demo') ,'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' ,'options' => array( 'wpautop' => true ,'media_buttons' => true ,'shortcode_buttons' => true ,'tabindex' => '' ,'editor_css' => '' ,'editor_class' => '' ,'teeny' => false ,'dfw' => false ,'tinymce' => array( 'resize' => false ,'wp_autoresize_on' => true ) ,'quicktags' => true ,'drag_drop_upload' => true ) )); // GROUP ADD_MORE TEST piklist('field', array( 'type' => 'group' ,'field' => 'group_test' ,'label' => __('Address (Grouped)', 'piklist-demo') ,'list' => false ,'description' => __('A grouped field with a key set. Data is not searchable, since it is saved in an array.', 'piklist-demo') ,'fields' => array( array( 'type' => 'text' ,'field' => 'text01' ,'label' => 'TEXT 01' ,'required' => true ,'columns' => 4 ,'attributes' => array( 'placeholder' => 'Text 01' ) ) ,array( 'type' => 'text' ,'field' => 'text02' ,'label' => 'TEXT 02' ,'required' => true ,'columns' => 4 ,'attributes' => array( 'placeholder' => 'Text 02' ) ) ,array( 'type' => 'select' ,'field' => 'select_optgroup' ,'label' => __('Select with Option Groups', 'piklist-demo') ,'columns' => 4 ,'value' => 'third' ,'choices' => array( 'Group 1' => array( 'first' => __('First Choice', 'piklist-demo') ,'second' => __('Second Choice', 'piklist-demo') ,'third' => __('Third Choice', 'piklist-demo') ) ,'Group 2' => array( 'first' => __('First Choice', 'piklist-demo') ,'second' => __('Second Choice', 'piklist-demo') ,'third' => __('Third Choice', 'piklist-demo') ) ) ) ,array( 'type' => 'editor' ,'field' => 'test_editor_01' ,'scope' => 'post' ,'label' => 'TEST EDITOR 02' ,'add_more' => true ,'description' => __('This is the standard WordPress Editor, placed in a Metabox, which is placed in a Piklist WorkFlow tab. By default, Piklist formats the editor like any other field with a label to the left.', 'piklist-demo') ,'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' ,'options' => array( 'wpautop' => true ,'media_buttons' => true ,'shortcode_buttons' => true ,'tabindex' => '' ,'editor_css' => '' ,'editor_class' => '' ,'teeny' => false ,'dfw' => false ,'tinymce' => array( 'resize' => false ,'wp_autoresize_on' => true ) ,'quicktags' => true ,'drag_drop_upload' => true ) ) ) ));
shayneolMemberOk. I know you probably don’t need a step-by-step, but this is what I just did:
1) I deleted the piklist folder within my theme directory
2) Deactivated the Piklist plugin
3) Deleted the Piklist plugin
4) Re-downloaded v.0.9.9, uploaded to plugins directory, and activated the plugin
5) Before I uploaded any meta-box files to my theme directory, I activated the Piklist demo and receive the same error message (see screenshot *disregard the Maintenance Mode notifications). No fields show up under any of the demo tabs, only the intro text.
6) Uploaded the meta-box files to my theme directory
7) I still cannot add more than ten visual editor items in an Add_More sectionAttachments:
You must be logged in to view attached files.
shayneolMemberHey Steve,
I deleted the entire piklist plugin folder and uploaded the new version. But I will try it again and let you know if that was the issue.
Attachments:
You must be logged in to view attached files.
shayneolMemberThank you guys for your hard work. I just tested v0.9.9 out…It seems to still be having problems with the visual editor with an Add_More function. I used my same code from above. While adding a post, the editor is now inside the section with the “+” and “-” buttons. Thanks. That works wonderfully. However, I cannot add more than ten items for each repeater section. After the tenth item, the visual editor glitches out. All of the buttons are gone, the text turns to all white, and clicking on the Text/Visual tabs do not work (I’m attaching a screenshot). Also, once in a while, when I click on the “+” button, the screen jumps to a different section of the page and no new repeater group is added to the screen. I have run the update script as prompted after installing the new plugin.
I thought that it might be my theme, so I tested it out on the twenty fifteen theme and received the same issues. Are there any other changes that I need to make on my end?
Also, I enabled the demo content to check if there were coding changes, but received this message when adding a new demo post: “This page is using the old Piklist WorkFlow system. Please update your code to the new WorkFlow system.”
Thanks
ShayneAttachments:
You must be logged in to view attached files. -
AuthorPosts