{"id":5714338,"date":"2015-01-26T16:37:30","date_gmt":"2015-01-26T16:37:30","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/get-tags-into-class\/"},"modified":"2016-08-22T15:49:32","modified_gmt":"2016-08-22T15:49:32","slug":"get-tags-into-class","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/get-tags-into-class\/","title":{"rendered":"Get tags into class?"},"content":{"rendered":"<p>Hi there! Thank you for the super-useful plug-in! I am trying to figure out how to get the media-tags for a given image as I am looping through my custom callback function.<\/p>\n<p>I tried something like:<br \/>\n class=&#8221;&#8216;.the_terms( wp_get_post_tags-&gt;ID, array( &#8216;fields&#8217; =&gt; &#8216;ids&#8217; ) );.'&#8221;<\/p>\n<p>and it doesn&#8217;t work. Is there an easy way to go about this? Is the taxonomy custom for media-tags?<\/p>\n<p>https:\/\/wordpress.org\/plugins\/media-tags\/<\/p>\n","protected":false},"template":"","class_list":["post-5714338","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5714338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5714338\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5714338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}