Home › Forums › WoodMart support forum › Quick View doesn't work › Reply To: Quick View doesn't work
February 24, 2021 at 7:12 am
#268856
Artem Temos
Keymaster
Try to add the following PHP code snippet to the child theme functions.php file to do this
function woodmart_get_elementor_html_blocks_array() {
$output = array();
$posts = get_posts(
array(
'posts_per_page' => 500, // phpcs:ignore
'post_type' => 'cms_block',
)
);
$output['0'] = esc_html__( 'Select', 'xts-theme' );
foreach ( $posts as $post ) {
$output[ $post->ID ] = $post->post_title;
}
return $output;
}