I’d like to enclose the Portfolio search (category) tags in a toggle as there may be as many as 30 tags, so it will keep the look tidy. I’ve tried adding do_shortcode to the loop-portfolio.php, but cannot get it to work.

If I do this, will the search tags still work when the toggle is opened?