3D FlipBook - Dynamic Selection of Which 3d Book

b***n@gmail.com
2020-09-03
2020-09-03

I am using the 3D Flipbook Wordpress Plugin on top of Divi. I would like to be able to dynamically select which book to preview on my page based on a parameter in the query string. How can I dynamically change the shortcode id based on a request parameter. Is there a way to tell the plugin which book to load based on my request parameter? [3d-flip-book mode="fullscreen" id="162" ][/3d-flip-book]

Replies

a***r@3dflipbook.net
2020-09-03
2020-09-03

use

$q = new WP_Query(array('post_type'=> '3d-flip-book', 'posts_per_page'=>-1));

with appropriate options then

do_shortcode('[3d-flip-book mode="fullscreen" id="'.$q->posts[0]->ID.'"][/3d-flip-book]')
b***n@gmail.com
2020-09-03
2020-09-03

Hi, I am sorry as I am a bit new to Wordpress. Where would I put the code that you provided me with?

Log In to leave a comment