php - Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'{'' or `'$'' -


i'm getting

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 wrong here? wp custom taxonomy page, need display value of custom field.

you should have put activities_extras_colour string like:

<?php $tag_extra_fields_colour = get_option('activities_extras_colour'); 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -