{diary_related_gallery:media_library_images}
{/diary_related_gallery:media_library_images}
Credit:
ChrisAKAFinin