3D FlipBook - Custom WP loops

I***r@gmail.com
2021-03-09
2021-03-10

Is it possible to create a custom WP loop to retrieve a certain query like a post type for instance, so that each page within the flipbook contains certain information taken from a post, which would also mean that I don't need to update the book manually?

Replies

a***r@3dflipbook.net
2021-03-10
2021-03-10

Yes

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

See more in shortcode.php

I***r@gmail.com
2021-03-10
2021-03-10

Thanks.

Log In to leave a comment