Support

Account

Home Forums Add-ons Gallery Field Display "categories" set to attachments in Gallery detail view

Solving

Display "categories" set to attachments in Gallery detail view

  • Hi folks,

    I’ve activated the native function of WordPress to support categories for attachements:

    function taz_addCategoriesToAttachments(){
    	register_taxonomy_for_object_type('category', 'attachment');
    }
    add_action('init', 'taz_addCategoriesToAttachments');

    While browsing the Media in grid view mode, if you click an image, it opens above the grid view and displays some informations on a right column (see attached image). The “categories” field is visible on this area.
    Media Grid View

    However, if I click an image from a gallery field view to expand it’s details, the “categories” field does not appear 🙁 (see attached image)
    Gallery Field View

    Anything I can do to have it displayed?

    Thanks for your time and support.

  • Just did some digging around in ACF and the answer appears to be no. ACF does not include this field and there isn’t any way to add a filter to allow it. You might want to open a new support ticket here https://support.advancedcustomfields.com/new-ticket/

  • Hi John,

    Thanks a lot for your answer. I’ll instantly do this.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Display "categories" set to attachments in Gallery detail view’ is closed to new replies.