Tagged: field, file upload
- This topic has 7 replies, 2 voices, and was last updated 5 years, 5 months ago by
Steve.
-
AuthorPosts
-
-
January 18, 2016 at 4:36 pm #5657
Anonymous
InactiveHi,
Im trying to add an image gallery to a custom post type, but when I update the post the images disappear. I can upload images using the media library and I’ve noticed that the piklist demo file uploader isn’t working either. Below is the code I am using to make the file upload field.
Any help would be much appreciated as I have run out of ideas as to how to fix this!
<?php /* Title: Gallery Post Type: garage Order: 99 */ piklist('field', array( 'type' => 'file', 'field' => 'gallery', 'scope' => 'post_meta', 'label' => __('Add Image(s)','piklist'), 'description' => __('This is the uploader seen in the admin by default.','piklist'), 'options' => array( 'modal_title' => __('Add File(s)','piklist'), 'button' => __('Add','piklist') ) )); -
January 18, 2016 at 5:49 pm #5662
SteveKeymasterTry changing the field name from
galleryto something else. It’s a very generic name and can be conflicting with another field. -
January 21, 2016 at 9:39 am #5677
Anonymous
InactiveI did some more testing and realised that I couldn’t save any posts (pages as well). I disabled W3 Total cache and now I can save posts, are there any know issues with using Piklist and W3 Total Cache?
Also I’ve noticed that when Piklist is activated, If I drag and reorder metaboxes the new order isn’t saved when I update / publish the post?
-
January 21, 2016 at 11:59 am #5682
SteveKeymaster@hartey11– W3 Total Caches page cache interferes with Piklist, so turning it off helps. The meta-box issue should be resolved in Piklist 0.9.9.x. Which version are you using?
-
January 21, 2016 at 12:26 pm #5685
Anonymous
InactiveThanks Steve, I was using an earlier version. I can now re-order the metaboxes.
Are there plans to make this work with W3 Total cache as I use it to minify and optimise my sites?
Last thing! (new project and trying to iron out these issues early on)
I’m testing out PHP7 locally with this setup and am getting the below message when Debug is true. Is this on your radar and will it cause any issues if i continue to use Piklist with PHP7?“Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Piklist_Universal_Widget has a deprecated constructor in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/piklist/includes/class-piklist-universal-widget.php on line 15”
-
January 25, 2016 at 11:39 am #5714
SteveKeymaster@hartey11– Thanks for letting us know. We’ll look into PHP7
-
August 16, 2016 at 10:08 am #7169
Anonymous
InactiveHi Steve,
I’m still unable to update/save fields when W3 Total Cache is enabled. Has any progress been made with this? I’m using the latest version of WordPress, Piklist & W3 Total Cache.
-
August 17, 2016 at 4:26 pm #7179
SteveKeymaster@hartey11– W3 Total Cache has tons of settings, so not exactly sure which would need to be changed.
If you can export your Total Cache configuration so we can reproduce that would help. Email to [email protected]
-
-
AuthorPosts
- You must be logged in to reply to this topic.