4
votes
Allow the advanced query loop to pull in cloud library/ pattern hub content
Is it possible to use the query loop block to pull the page and section templates we have saved in our cloud library to display our page and section designs to users like a demo site?
One Comment
Leave a Reply
You must be logged in to post a comment.



Currently, as a workaround, you can use the following code snippet, updating your $ql_id:
add_filter( ‘kadence_blocks_pro_query_loop_query_vars’, function( $query, $ql_query_meta, $ql_id ) {
if ( $ql_id == 2888 ) {
$query[‘post_type’] = ‘kadence_cloud’;
}
return $query;
}, 10, 3 );