• The media taxonomy filter doesn’t seem to appear in the file upload dialog for a custom field (CMB2) for a certain post type. It’s a non-public post type which doesn’t have the ‘Featured image’ metabox (‘thumbnail’ absent from ‘supports’ array when registering post type). I tried adding support for ‘thumbnail’ to see if the filter was in that dialog, and it was. It was also now in the custom field dialog.

    I assumed there’s a check in the plugin but I can’t find ‘post_type_supports’ or ‘thumbnail’ in there. Is there another check I’m missing or is this something in core which F4 is interacting with?

    Can you see a way to make the taxonomy filter appear on file upload custom fields even when the post type doesn’t support the core ‘thumbnail’?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author FAKTOR VIER

    (@faktorvier)

    Hey @gyrus

    Thanks for your detailed problem description! We’ll take a look and get in touch as soon as we find something!

    Plugin Author FAKTOR VIER

    (@faktorvier)

    Hi @gyrus

    Sorry for the late answer!

    We’ve just released a new version that should fix your problem in combination with CMB2.

    We think the problem was caused by the way CMB2 handles enqueued scripts. We add the filters to the modal as soon as the media-views script is enqueued by WordPress. CMB2 seems to dequeue that script somehow and append it later into the footer. We can’t confirm that 100% but we think that should be the case. We added a new condition for CMB2 that should fix that for you.

    If the problem still persists feel free to get in touch with us again!

    Thread Starter Steve Taylor

    (@gyrus)

    That’s great – seems to work well. Many thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter not appearing for custom field when Featured Image absent’ is closed to new replies.