Bonjour
J’ai créé un custom post Type qui fonctionne avec les infos de bases:
register_post_type( ‘cantine’,
array(
‘labels’ => array(
‘name’ => __( ‘Cantine’ ),
‘singular_name’ => __( ‘Cantine’ )
),
‘public’ => true
‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’ ),
)
);
mais quand j’y ajoute
register_post_type( ‘cantine’,
array(
‘labels’ => array(
‘name’ => __( ‘Cantine’ ),
‘singular_name’ => __( ‘Cantine’ )
),
‘public’ => true
‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’ ),
)
);
j’ai une belle page blanche et dans les logs apache j’ai:
PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in /var/www/dev.site/wp-content/themes/site_V3/functions.php on line 19
Une bonne ame pour m’aiguiller?
Merci d’avance