added functionality of sub categories for the search shortcode.
updated version