Home Forums Space themes support forum Custom Fields not showing + Custom product design bugs Reply To: Custom Fields not showing + Custom product design bugs

#335468

Artem Temos
Keymaster

Try to edit the file xts-hitek/framework/modules/header-builder/elements/html-block/class-html-block.php and replace the following code

private function get_options() {
	$array        = array();
	$args         = array(
		'posts_per_page' => 250,
		'post_type'      => 'xts-html-block',
	);
	$blocks_posts = get_posts( $args );
	foreach ( $blocks_posts as $post ) {
		setup_postdata( $post );
		$array[ $post->ID ] = array(
			'label' => $post->post_title,
			'value' => $post->ID,
		);
	}
	wp_reset_postdata();
	return $array;
}

with this one

private function get_options() {
	$array        = array();
	$args         = array(
		'posts_per_page' => 250,
		'post_type'      => 'xts-html-block',
	);
	$blocks_posts = get_posts( $args );
	foreach ( $blocks_posts as $post ) {
		$array[ $post->ID ] = array(
			'label' => $post->post_title,
			'value' => $post->ID,
		);
	}
	return $array;
}

Kind Regards