Make mapShortcode function