Create function for orderby categories (with shortcode translation)