Support » Plugin: Rename Media Files » wrong post type for attachment with media_handle_sideload

  • Resolved gbyat

    (@gbyat)


    I use a function to fetch an image out from the cache into media library with media_handle_sideload and set_post_thumbnail to feature the image in a custom post type. when using your plugin, the attachment file is saved under the post type of its parent post, not as post_type attachment. so I can’t see the image in the media library and not set it as featured image any more.

    https://wordpress.org/plugins/rename-media-files/

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘wrong post type for attachment with media_handle_sideload’ is closed to new replies.