I would suggest just writing your own shortcode function. It gets really dangerous running php inside of the entry and writing a shortcode is very simple http://www.webdesignerdepot.com/2013/06 ... hortcodes/. You can then create params that could include the class to select or any other useful parameters and significantly simplify making changes to the functionality later.