Home / Other SEO Articles / How to Add a shortcode to a WordPress Template php file

How to Add a shortcode to a WordPress Template php file

Open up the php template file. Appearance – Theme Editor
Add the code: <?php echo do_shortcode( ‘

Error: Contact form not found.

‘ ); ?>
The part within the [ ] is the shortcode name

Top