How to convert bootstrap tab functionality into wordpress using just 1 query?

If I’m reading this right, both queries are identical so just copy the one to a new variable:

$book = new WP_Query( $args );
// ...
$book_2 = $book;

Or create them at the same time:

$book = $book_2 = new WP_Query( $args );

Leave a Comment