Menu
Menu

Tag: do_shortcode

October 22, 2013
Execute WordPress Shortcode from PHP

Sometimes when building themes we need to execute shortcode directly from php. This can be for things such as Forms, Sliders, Gallery’s etc. Below is the code needed. Replace the code between the ‘ and ‘ marks with your own.

Shares