Title: Parse error: syntax error (T_STRING): eval()&#039;d code
Last modified: August 30, 2016

---

# Parse error: syntax error (T_STRING): eval()'d code

 *  Resolved [igloobob](https://wordpress.org/support/users/igloobob/)
 * (@igloobob)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-t_string-evald-code/)
 * Hello,
 * I’m getting an error message:
 * `Parse error: syntax error, unexpected 'bathrooms_panel' (T_STRING) in /path/
   to/site/wp-content/plugins/insert-php/insert_php.php(48) : eval()'d code on line
   1`
 * I am trying to use this to insert php to pull custom fields into variables to
   use in the tabby tabs plugin.
 * This is the code I am trying to use:
 *     ```
       [insert_php]
       $plumbingtitle = get_field('plumbing_panel_title');
       $plumbingpanel = get_field('plumbing_panel');
       $boilerstitle = get_field('boilers_and_heating_panel_title');
       $boilerspanel = get_field('boilers_and_heating_panel');
       $gastitle = get_field('gas_works_panel_title');
       $gaspanel = get_field('gas_works_panel');
       $bathroomstitle = get_field('bathrooms_panel_title);
       $bathroomspanel = get_field('bathrooms_panel'); 
   
       echo do_shortcode('[tabby title="' . $plumbingtitle . '"]');
   
       echo $panelonecontent;
   
       echo do_shortcode('[tabby title="' . $boilerstitle . '"]');
   
       echo $boilerspanel;
   
       echo do_shortcode('[tabby title="' . $gastitle . '"]');
   
       echo $gaspanel;
   
       echo do_shortcode('[tabby title="' . $bathroomstitle . '"]');
   
       echo $bathroomspanel;
   
       echo do_shortcode('[tabbyending]');
   
       [/insert_php]
       ```
   
 * Can anyone shed any light on what the issue might be please?
 * Thanks!
 * [https://wordpress.org/plugins/insert-php/](https://wordpress.org/plugins/insert-php/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-t_string-evald-code/#post-6769790)
 * Hi Jon, me again – I have just installed ‘Insert PHP’ on my test site and it 
   seemed to output the tabs as I expected/hoped.
 * It looks like a tiny typo has crept into your code where a closing quote is missing
   from the line:
 * `$bathroomstitle = get_field('bathrooms_panel_title);`
 * I think it should work if you add it in:
 * `$bathroomstitle = get_field('bathrooms_panel_title');`
 *  Thread Starter [igloobob](https://wordpress.org/support/users/igloobob/)
 * (@igloobob)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-t_string-evald-code/#post-6769849)
 * Aha!!
 * Thanks so much for your follow up here cubecolour. It’s working now 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Parse error: syntax error (T_STRING): eval()'d code’ is closed to new
replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [igloobob](https://wordpress.org/support/users/igloobob/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-t_string-evald-code/#post-6769849)
 * Status: resolved