I have a error:
Parse error: syntax error, unexpected '<' in /home/dgsite81/public_html/dgprint/wp-content/themes/dgprint/taxonomy-product_category.php on line 197
CODE PHP:
<?php
$queried_object = get_queried_object();
$cat_content = get_field('category_content', $queried_object);
$imagine2= get_field('imagine2',$queried_object);
$imagine3= get_field('imagine3',$queried_object);
$imagine4= get_field('imagine4',$queried_object);
$imagine5= get_field('imagine5',$queried_object);
$fields = array("cat_content","imagine2","imagine3","imagine4","imagine5");
<ul> //here is the line with error
<?php foreach($fiedls as $value) { ?>
<li><?php echo $value; ?></li>
<?php } ?>
</ul>
?>
How can I fix this error? I did not realize what I should add parentheses and where exactly.
`
– Paul Dixon Jun 25 '15 at 13:13