openmindculture / kleiderordnung-berlin

Portfolio website for sustainable stylist Tina Steinke in Berlin, using a hybrid classic WordPress theme with custom front page and block enabled pages.
3 stars 0 forks source link

Media Library empty or only missing item(s) when invoked from custom post type set featured image button #24

Open openmindculture opened 1 year ago

openmindculture commented 1 year ago

Custom post type 'offer' is defined in a 'mu-plugin' using ACF syntax including featured image support. Theme functions also explicitly declare featured image support for this custom post type.

When invoked from main wp-admin sidebar menu, the media library shows multiple image items. But when invoked from custom post type set featured image button the library either claims that it's empty or it contains exactly 1 image, the one uploaded for this post.

After uploading a new image into a seemingly empty library invoked from a custom post, this image shows in that media library view, but also in the full list when invoked from the wp-admin sidebar menu.

This happens with or without using image optimization plugin like TinyPNG.

WordPress version: 6.3 Advanced Custom Fields version: 6.2.0

openmindculture commented 1 year ago

Asked on wordpress.org: https://wordpress.org/support/topic/media-library-empty-or-only-1-item-when-invoked-from-custom-post/

openmindculture commented 1 year ago

Asked on wordpress.stackexchange: https://wordpress.stackexchange.com/questions/418213/media-library-empty-or-only-1-item-when-invoked-from-custom-post-type-set-featur

openmindculture commented 1 year ago

Workaround:

openmindculture commented 1 year ago

Mistakenly reported or changed behavior, as I now start by uploading all the images for the offer post type: now it seems that the posts only show those media library items

openmindculture commented 1 year ago

Todo: verify if this correlates to custom post types or rather to multiple languages which would make it a Polylang (configuration) issue.

openmindculture commented 1 year ago

can't reproduce anymore?

openmindculture commented 1 year ago

Possibly a bug, misfeature or misconfiguration of Polylang?

Current behavior:

After uploading a new image as a post thumbnail and saving the post, this very image is not available to choose as an existing image item in the media library when adding a translated post version in another language. So I have to upload the same image again. This makes me and my customers upload every image 2 times, as we have 2 languages.

Possibly related existing issue: https://wordpress.org/support/topic/images-not-showing-in-one-of-the-languages/

New issue: Support: Plugin: Polylang: Media Libray images only showing in one language: https://wordpress.org/support/topic/media-libray-images-only-showing-in-one-language/