Site icon Hip-Hop Website Design and Development

Show Visible Composer shortcode if a submit belongs in particular classes

I’ve a PHP template file that requires some Visible Composer shortcode to be added. I solely need the shortcode to show if a submit belongs to sure classes. At anyone time, no less than three baby classes will likely be chosen for the submit.

How can I take advantage of echo do_shortcode to fireside solely when these classes are chosen? What I need is a particular shortcode to be added to the content material when the submit is in a sure class. Ideally, it’s going to get stripped when the person selects one other class that is not within the collection. I might add it as a div inside the template file.