[Ajuda] Template
-
Instalei um template está dando o erro abaixo de syntax, acho que seja coisa boba, mas esto começando a aprender PHP ainda, des de já agradeço os que ajudarem.
O erro:
Parse error: syntax error, unexpected ‘:’ in /home/lrcon/public_html/wp-content/themes/CherryFramework-Child/includes/post_cv_info.php on line 101O código:
if($post_type != ‘post’){
(LINHA 101) $get_post_category = is_wp_error(get_the_terms($post_id, $get_category_type)) ?: (LINHA 101 TAMBÉM)get_the_terms($post_id, $get_category_type);
foreach ($get_post_category as $category => $category_value) {
$post_category .= $category_value->slug.’ ‘;
}
}else{
$get_post_category = get_the_category($post_id);
foreach ($get_post_category as $category => $category_value) {
$post_category .= $category_value->slug.’ ‘;
}
}
- O tópico ‘[Ajuda] Template’ está fechado para novas respostas.