Tagged: add-more, file upload
- This topic has 3 replies, 2 voices, and was last updated 6 years, 2 months ago by
Steve.
-
AuthorPosts
-
-
November 27, 2015 at 11:39 am #5107
vgrchMemberHello,
I found in the forum that it was a known issue and supposedly fixed, but I still can’t make it work. The file I’m adding to a grouped field is never saved.
Another little thing, the file uploader seems to take the whole width and doesn’t follow the instructions in the ‘columns’ option.
The code I’m using is below:
piklist('field', array( 'type' => 'group' ,'field' => 'artist' ,'label' => __('Artist') ,'add_more' => true ,'fields' => array( array( 'type' => 'text' ,'field' => 'artist_name' ,'label' => 'Artist name' ,'columns' => 4 ) ,array( 'type' => 'text' ,'field' => 'artist_url' ,'label' => 'Artist URL' ,'columns' => 8 ) ,array( 'type' => 'file' ,'field' => 'artist_contract' ,'scope' => 'post_meta' ,'label' => __('Add Contract','piklist') ,'columns' => 8 ,'description' => __('Upload contract in PDF.','piklist') ,'options' => array( 'modal_title' => __('Add Contract','piklist') ,'button' => __('Add','piklist') ) ) ,array( 'type' => 'checkbox' ,'field' => 'artist_secured' ,'label' => 'Secured' ,'columns' => 4 ,'choices' => array( 'secured' => 'Secured' ) ) ) ));I’m using the 0.9.4.29 version, the current one from the WordPress directory. I tried to install your beta version (0.9.9.6) but it gave me these errors:
—
Warning: include_once(Z:\home\localhost\demo/wp-content/plugins/piklist/parts/updates/0.9.9.php): failed to open stream: No such file or directory in Z:\home\localhost\demo\wp-content\plugins\piklist_beta\includes\class-piklist-admin.php on line 826
Warning: include_once(): Failed opening ‘Z:\home\localhost\demo/wp-content/plugins/piklist/parts/updates/0.9.9.php’ for inclusion (include_path=’.;C:\php\pear’) in Z:\home\localhost\demo\wp-content\plugins\piklist_beta\includes\class-piklist-admin.php on line 826
Fatal error: Class ‘Piklist_Update_0_9_9’ not found in Z:\home\localhost\demo\wp-content\plugins\piklist_beta\includes\class-piklist-admin.php on line 830
—
I also wanted to ask: do I understand right that with newly added front-end forms it’s possible to submit posts directly from the front-end with the same range of fields as it’s possible from back-end now? Do you plan to extend that functionality to be able to edit custom post types from front-end with all their custom fields? That would be so awesome.
Thank you in advance.
-
November 27, 2015 at 1:32 pm #5116
-
November 27, 2015 at 2:01 pm #5127
vgrchMemberI tried, and the file is actually there. It doesn’t see it somehow. Maybe it’s the problem with my localhost, I’ll try on another one.
So the bug with the file uploader, is it fixed in the version I’m using now (0.9.4.29) or only in the beta version?
Thanks.
-
November 27, 2015 at 2:13 pm #5128
SteveKeymasterIt would be fixed in v0.9.9.x
-
-
AuthorPosts
- You must be logged in to reply to this topic.