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.

  • 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

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>
  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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