0

I used to post same shortcodes every time (shortcodes loads dynamic contents). So, I want to pack these shortcodes in a template for my posts. How can I do this?

1 Answer 1

1

You might want to check out... http://codex.wordpress.org/Function_Reference/do_shortcode

But the gist for using shortcodes in a template is as follows...

// Use shortcode in a PHP file (outside the post editor). do_shortcode('[gallery]');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.