Title: [Plugin: More Fields] Urgent help please- Parse error: syntax error, unexpected
Last modified: August 20, 2016

---

# [Plugin: More Fields] Urgent help please- Parse error: syntax error, unexpected

 *  [pixelandgrain](https://wordpress.org/support/users/pixelandgrain/)
 * (@pixelandgrain)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-more-fields-urgent-help-please-parse-error-syntax-error-unexpected/)
 * I am developing theme and it almost done only need to save all my more fields
   metabox to my metabox.php or into the more field save folder… but when I tried
   it gives me this error “Parse error: syntax error, unexpected T_STRING”
    I am
   not familiar with this kind of code and dont know what to do. Its urgent please
   help me to solve this issue. Here is the entire code.
 *     ```
       <?php
       add_filter('more_fields_saved', 'more_fields_saved_classifieds_post_data');
       function more_fields_saved_classifieds_post_data ($d) {$d['classifieds-post-data'] = maybe_unserialize('a:6:{s:5:"label";s:21:"Classifieds Post Data";s:8:"position";s:4:"left";s:5:"index";s:21:"classifieds-post-data";s:12:"ancestor_key";s:0:"";s:6:"fields";a:13:{s:15:"short-info-text";a:8:{s:5:"label";s:15:"Short Info Text";s:3:"key";s:9:"highlight";s:4:"slug";s:0:"";s:10:"field_type";s:4:"text";s:6:"values";s:0:"";s:7:"caption";s:78:"Write few words about your classified which helps to highlight and quick read.";s:5:"index";s:15:"short-info-text";s:12:"ancestor_key";s:0:"";}s:23:"title-for-specification";a:8:{s:5:"label";s:23:"Title for Specification";s:3:"key";s:19:"specification-title";s:4:"slug";s:0:"";s:10:"field_type";s:4:"text";s:6:"values";s:0:"";s:7:"caption";s:50:"blank field will use default title 'Specification'";s:5:"index";s:23:"title-for-specification";s:12:"ancestor_key";s:0:"";}s:21:"product-specification";a:8:{s:5:"label";s:21:"Product Specification";s:3:"key";s:13:"specification";s:4:"slug";s:0:"";s:10:"field_type";s:7:"wysiwyg";s:6:"values";s:0:"";s:7:"caption";s:159:"Specification about classified product. (you can design according to your choice with text editor, however theme designed with consideration of unordered list)";s:5:"index";s:21:"product-specification";s:12:"ancestor_key";s:0:"";}s:11:"embed-video";a:8:{s:5:"label";s:11:"Embed Video";s:3:"key";s:10:"embedvideo";s:4:"slug";s:0:"";s:10:"field_type";s:4:"text";s:6:"values";s:0:"";s:7:"caption";s:0:"";s:5:"index";s:11:"embed-video";s:12:"ancestor_key";s:0:"";}s:4:"logo";a:8:{s:5:"label";s:4:"Logo";s:3:"key";s:4:"logo";s:4:"slug";s:0:"";s:10:"field_type";s:4:"text";s:6:"values";s:0:"";s:7:"caption";s:78:"Logo Image URL (size must be 180 X 113 should uploaded via wordpress uploader)";s:5:"index";s:4:"logo";s:12:"ancestor_key";s:0:"";}s:12:"company-name";a:8:{s:5:"label";s:12:"Company Name";s:3:"key";s:11:"companyname";s:4:"slug";s:0:"";s:10:"field_type";s:4:"text";s:6:"values";s:0:"";s:7:"caption";s:20:"Add product website.";s:5:"index";s:12:"company-name";s:12:"ancestor_key";s:0:"";}s:11:"website-url";a:8:{s:5:"label";s:11:"Website URL";s:3:"key";s:10:"websiteurl";s:4:"slug";s:0:"";s:10:"field_type";s:4:"text";s:6:"values";s:0:"";s:7:"caption";s:97:"URL for website - e.g www.domain.com, do not add http:// (link will be added to website and logo)";s:5:"index";s:11:"website-url";s:12:"ancestor_key";s:0:"";}s:15:"title-for-price";a:8:{s:5:"label";s:15:"Title for Price";s:3:"key";s:11:"price-title";s:4:"slug";s:0:"";s:10:"field_type";s:4:"text";s:6:"values";s:0:"";s:7:"caption";s:42:"blank field will use default title 'Price'";s:5:"index";s:15:"title-for-price";s:12:"ancestor_key";s:0:"";}s:5:"price";a:8:{s:5:"label";s:5:"Price";s:3:"key";s:5:"price";s:4:"slug";s:0:"";s:10:"field_type";s:7:"wysiwyg";s:6:"values";s:0:"";s:7:"caption";s:35:"Add price of your product classifed";s:5:"index";s:5:"price";s:12:"ancestor_key";s:0:"";}s:17:"title-for-contact";a:8:{s:5:"label";s:17:"Title for Contact";s:3:"key";s:13:"contact-title";s:4:"slug";s:0:"";s:10:"field_type";s:4:"text";s:6:"values";s:0:"";s:7:"caption";s:49:"blank field will use default title 'Contact Info'";s:5:"index";s:17:"title-for-contact";s:12:"ancestor_key";s:0:"";}s:7:"address";a:8:{s:5:"label";s:7:"Address";s:3:"key";s:7:"address";s:4:"slug";s:0:"";s:10:"field_type";s:7:"wysiwyg";s:6:"values";s:0:"";s:7:"caption";s:43:"Add your classified client contact address.";s:5:"index";s:7:"address";s:12:"ancestor_key";s:0:"";}s:10:"google-map";a:8:{s:5:"label";s:10:"Google Map";s:3:"key";s:9:"googlemap";s:4:"slug";s:0:"";s:10:"field_type";s:8:"textarea";s:6:"values";s:0:"";s:7:"caption";s:47:"Add your google map code. (max width 425 pixel)";s:5:"index";s:10:"google-map";s:12:"ancestor_key";s:0:"";}s:17:"title-for-gallery";a:8:{s:5:"label";s:17:"Title for Gallery";s:3:"key";s:13:"gallery-title";s:4:"slug";s:0:"";s:10:"field_type";s:4:"text";s:6:"values";s:0:"";s:7:"caption";s:55:"blank field will use default title 'Classified Gallery'";s:5:"index";s:17:"title-for-gallery";s:12:"ancestor_key";s:0:"";}}s:10:"post_types";a:1:{i:0;s:11:"classifieds";}}', true); return $d; }
       ?>
       ```
   

The topic ‘[Plugin: More Fields] Urgent help please- Parse error: syntax error, 
unexpected’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [pixelandgrain](https://wordpress.org/support/users/pixelandgrain/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-more-fields-urgent-help-please-parse-error-syntax-error-unexpected/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
