Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'{'' or `'$''
I'm getting a
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'{'' or `'$'' in C:\wamp\www\...\taxonomy-activities.php on line 22
I have following code on Line 22:
<?php $tag_extra_fields_Colour = get_option(Activities_Extras_Colour); $activites_color=$tag_extra_fields_Colour[$term->term_id]['Activities_ColourField']; ?> <h3 style="color:<?php echo $activites_color ?>">Activities</h3>
What could be wrong here? Its a WP custom taxonomy page, where I need to display a value of the custom field.
Answers
You should have put Activities_Extras_Colour as a string like:
<?php $tag_extra_fields_Colour = get_option('Activities_Extras_Colour');