• Hello,

    Currently trying to use a custom box to upload a file to a CPT

    I also have the following code that changes all posts author to a specific user

    function my_change_author( $data , $postarr )
    {
    if ( 'comp_entry' == get_post_type() ) {
      $data['post_author'] = 2;
      }
      return $data;
    }
    
    add_filter('wp_insert_post_data' , 'my_change_author' , '99', 2);

    I presume the issue is when the extra meta is saved and how my function is getting in the way. The posts are still saved but the file doesn’t make it to the ‘uploads’ directory or remember the file name.

    How is the file saved? Is it possible for me to hook my function in after that?

    Thanks

    Sam

    http://wordpress.org/extend/plugins/verve-meta-boxes/

  • The topic ‘[Plugin: Verve Meta Boxes] File not uploading’ is closed to new replies.