Need help to solve a code problem
-
it is this line that started the … $output .= ‘<a href
sublime text shows the error and when I inspect the web browser, it is precisely this line is wrong? but I can not see the error!
<?php
$categories = get_the_category( );
$separator = “, “;
$output = ”;
if ($categories){
foreach ($categories as $category ) {
$output .= ‘term_id) . ‘”>’ . $category->cat_name . ‘‘ . $separator;
}
echo trim($output, $separator);
}?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Need help to solve a code problem’ is closed to new replies.