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);
    <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.


You should have put Activities_Extras_Colour as a string like:

<?php $tag_extra_fields_Colour = get_option('Activities_Extras_Colour');

Need Your Help

Excel VBA use defined name for table name

excel vba sorting range

In the following code, I am sorting my table named DepList on the DepName column.

Rails 3.2.1 missing instant variables on AJAX response; Ruby 1.9.3

ruby-on-rails ajax

I am having a strange problem. Whenever I do a AJAX request I get an error about the instance variables being "nil". It seems that the request does not get anything from the controller.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.