Site icon Hip-Hop Website Design and Development

Add a category to the anchor tag on HTML5 gallery

I wish to add a category to the anchor tag of the HTML5 gallery, so I can use a lightbox plugin, however I have no idea how to do this, i’ve tried with the code beneath, however with out success.

add_filter('wp_get_attachment_link', 'html5', array( 'gallery', 'caption' ));

$hyperlink = "<a category='gallery-link'></a>";