Hi, I want to build some custom shortocdes .My question is that can I embed them in the theme file or I must build it in a plugin? thanks!!
You must create your shortcodes inside a plugin. Otherwise your item will end up rejected.
Btw, all custom post types, metaboxes, widgets needs to be added on a plugin.