Hello!
Please i need monster help concerning this error.
"Parse error: syntax error, unexpected T_ECHO in /home/content/09/9480109/html/wp-content/themes/Avenue/functions.php on line 143"
And this is the code, i can't seem to find the mistake, it was working fine before i changed the (=listings&location) to (=listing&size) but then i changed it back and i am getting the message above
break;
case 'location':
$post_type = get_post_type($post_id);
$terms = get_the_terms($post_id, 'location');
if ( !empty($terms) ) {
foreach ( $terms as $term )
$post_terms[] = "<a href='edit.php?post_type=listings&location={$term->slug}'> " . esc_html(sanitize_term_field('name', $term->name, $term->term_id, $taxonomy, 'edit')) . "</a>";
echo join( ', ', $post_terms );
}
else echo '<i>No terms.</i>';
break;