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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi there guys quick question, using FlippingBook and calling a gallery within a page or post is with something like this: [book id='1' /] but I want to call the gallery directly from my code, so is there any php code to achieve this? Thanks guys!

Arturo

http://wordpress.org/plugins/page-flip-image-gallery/

share|improve this question

Short answer but I think it is all you need.

do_shortcode("[book id='1' /]");

Reference:

http://codex.wordpress.org/Function_Reference/do_shortcode

share|improve this answer
1  
Don't forget to escape your single quote character or use double-quotes. – Ben Miller Jul 31 '13 at 20:06

Your Answer

 
discard

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.