Tagged: ,

Viewing 7 reply threads
  • Author
    Posts
    • #5657
      Anonymous
      Inactive

      Hi,

      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')
          )
        ));
    • #5662
      Steve
      Keymaster

      Try changing the field name from gallery to something else. It’s a very generic name and can be conflicting with another field.

    • #5677
      Anonymous
      Inactive

      I 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?

    • #5682
      Steve
      Keymaster

      @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?

    • #5685
      Anonymous
      Inactive

      Thanks 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”

    • #5714
      Steve
      Keymaster

      @hartey11– Thanks for letting us know. We’ll look into PHP7

    • #7169
      Anonymous
      Inactive

      Hi 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.

    • #7179
      Steve
      Keymaster

      @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]

Viewing 7 reply threads
  • You must be logged in to reply to this topic.