Viewing 5 reply threads
  • Author
    Posts
    • #7454
      bobstew
      Member

      The reordering of ‘field’ ‘type’ => ‘upload’ was working fine.
      But then the client updated WordPress and now the reordering is not working. We are now running WP 4.6.1 – PikList 0.9.9.9

      I’ve checked this post – https://piklist.com/support/topic/reordering-not-working-on-images/ – but it doesn’t seem to address my issue ( I think).

      Here is my code for the media upload:

      piklist('field', array(
      'type' => 'file'
      ,'field' => 'upload_media'
      ,'scope' => 'post_meta'
      ,'label' => __('Add File(s)','piklist')
      ,'description' => __('Add images to a Report.','piklist')
      ,'options' => array(
        'modal_title' => __('Add File(s)','piklist')
        ,'button' => __('Add','piklist')
      )
      ));

      thanks!

    • #7455
      bobstew
      Member

      Oh -this may be due to an update of WPML.

    • #7460
      bobstew
      Member

      I’ve disabled WPML and the reordering of images in the metabox field is not working. Also it seems to limit me to 10 images. This all occurred after updating to WP 4.6.1

    • #7462
      bobstew
      Member

      I’ve disabled all the plugins except pikList and I’m still having the problem. Also I noticed that I did have custom-fields enabled as part of defining the post type

      
      'report' => array(
             'labels' => piklist('post_type_labels', 'Report')
            ,'title' => __('Enter a new Report Title')
            , 'supports' => array( 
            	'title'
            	, 'editor'
            	, 'post-formats'
            	, 'thumbnail'
            	, 'custom-fields' 
            	, 'excerpt' 
            	, 'author'
            	, 'revisions'
            	)
      

      So I took that out. I also put this code in functions:
      function fix_metabox() {

          remove_post_type_support( 'report', 'custom-fields', 100 );
      }
       add_action( 'init' , 'fix_metabox' );
      

      I did that because of this post:

      Meta box does not update when post is Published

      I’m using pikList 0.9.9.9

      Now 50% of the time the reordering will get saved – the rest of the time it orders by input date ( I think). Anyway – its acting a bit flakey.

    • #7469
      Steve
      Keymaster

      Are you using this field for Posts? I can’t reproduce it.

    • #7479
      bobstew
      Member

      I’m using it for a custom post-type called “report”

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