Viewing 1 replies (of 1 total)
  • Plugin Author DeBAAT

    (@debaat)

    Hai Gaspard,

    Yes, that’s possible.
    In fact, I just used it myself in the new functionality for the new shortcode attribute in method “mcm_wp_get_attachment_link” like this:

    $terms = wp_get_object_terms($id, $media_taxonomy);

    The $terms returned contains an array with all categories that belong to the $id.
    Hope this helps.

    Best,
    Jan

Viewing 1 replies (of 1 total)
  • The topic ‘get the MCM categories of a media from the media ID’ is closed to new replies.