I am trying to add Thumbnails to a custom post type (‘wheels’) admin page, and I am trying to do this with an array (see below).
The ‘get_the_post-thumbnail’ part of the array is giving me the problem, can anyone tell me what I am doing wrong?
add_filter( 'manage_edit-wheels_columns', 'asd_edit_wheels_columns' ) ;
function asd_edit_wheels_columns( $columns ) {
$columns = array(
'cb' => '<input type="checkbox" />',
'title' => __( 'Wheel Name' ),
'rim_spokes' => __( '# Spokes' ),
'wheel_tire' => __( 'Tire Name' ),
'date' => __( 'Date' )
'get_the_post-thumbnail [(post-thumbnail)'] => __( 'Featured' )
);
return $columns;
}
Not really sure what exactly you are trying to do there (is this about some framework?), but I can see this one possible error:
At that point, you first close the quotation, and then you put the closing square bracket. This should give you a syntax error. I guess you wanted to include the bracket inside of the string, so you should switch the characters around.
edit:
Oh an also after
'date' => __( 'Date' ), there is a comma (,) missing.