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?

x***l@gmail.com
2021-02-11
2021-03-22

I think you can use the code snippet plugin, but.... I still don't know how to implement this in worpdress... please, would you explain better how to proceed ?

Log In to leave a comment