How can i resolve this, running this code getting Parse error: syntax error, unexpected ‘get_post_meta’ (T_STRING), expecting ‘,’ or ‘;’, the code is

                  'hide_empty' => false

                foreach($all_terms as $single_term)
                { echo ' <li class="'get_post_meta(get_the_ID(), 'serv_active', true);'"><a href="#'.$single_term-> slug.'" data-toggle="tab">'.$single_term-> name.'</a>

Thanks for help

Read more here: Getting Parse error and syntax error how to solve this?


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: