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?
katy-8434 shared this idea

One Comment

  1. 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 );

Leave a Reply