Is there a way to add shortcodes for controling content

Is there a way to add shortcodes for controling content directly within the PHP theme file? On the home page we want to have a different slideshow for each level.