Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I would like to display the plugin HTML5 jQuery Audio Player 'centered' on the front page of my site. The plugin comes with shortcodes for posts and pages but my front(home page) only works with the 'set front page to posts' option.

I'm new to this coding business, so I guess I need to call the plugin from the index.php template file.

share|improve this question
Hi, Jay, welcome to the code business! Please, take a look at this site faq and use your profile for signatures and such. – brasofilo Jan 30 '13 at 22:48

1 Answer 1

If the plugin has shortcodes, then you can use the function do_shortcode to display it within a theme file.

It'd be a case of:

<div class="align-center"><?php do_shortcode( "[audio-player title='Lorem Ipsum']" ); ?></div>
share|improve this answer
do_shortcode() normally works for this sort of thing; but the plugin referenced in the author's question does not. – magi182 Feb 3 '14 at 4:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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