Zo hoort het te zijn:

Dit krijg ik te zien:

De code is hieronder weergegeven. Ik kan alleen nog geen php lezen. Iemand die weet de oorzaak is dat dit gedeelte niet wordt weergegeven of wat ik aan moet passen?
Alvast Bedankt!
<?php
public function controls() {
$allowed_post_types = apply_filters( 'cs_recent_posts_post_types', array( 'post' => 'post' ) );
if ( count($allowed_post_types) > 1 ) {
$choices = array();
foreach ($allowed_post_types as $key => $value) {
$obj = get_post_type_object( $value );
if ( ! is_null( $obj ) && isset( $obj->labels ) ) {
$choices[] = array( 'value' => $key, 'label' => $obj->labels->name );
}
}
$this->addControl(
'post_type',
'select',
__( 'Post Type', 'cornerstone' ),
__( 'Choose between standard posts or portfolio posts.', 'cornerstone' ),
'post',
array(
'choices' => $choices
)
);
}
?>