Title: syntax error, unexpected &#8216;=&#8217; for comments
Last modified: August 7, 2019

---

# syntax error, unexpected ‘=’ for comments

 *  Resolved [Wilfredo Perozo](https://wordpress.org/support/users/wiljope007/)
 * (@wiljope007)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-for-comments/)
 * Regards Greg! When trying to enable comments for each ad, I add as you indicate:
   [https://github.com/simpliko/wpadverts-snippets/blob/master/enable-comments/enable-comments.php](https://github.com/simpliko/wpadverts-snippets/blob/master/enable-comments/enable-comments.php)
   However I throw the following error in line 2: syntax error, unexpected ‘=’
 * What should I do about it?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-for-comments/#post-11811289)
 * Hi,
    hmm i am not sure, how do you install the snippet?
 * It is best to just download a raw version of the file here [https://raw.githubusercontent.com/simpliko/wpadverts-snippets/master/enable-comments/enable-comments.php](https://raw.githubusercontent.com/simpliko/wpadverts-snippets/master/enable-comments/enable-comments.php),
   press Ctrl + s to save it to your computer as enable-comments.php and then upload
   the file via FTP to wp-content/plugins folder and activate the Enable Comments
   plugin from wp-admin / Plugins panel.
 * If you are copying the code from enable-comments.php to your theme functions.
   php then most likely there is something incorrectly copied but i cannot tell 
   what without looking at the file.

Viewing 1 replies (of 1 total)

The topic ‘syntax error, unexpected ‘=’ for comments’ is closed to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-for-comments/#post-11811289)
 * Status: resolved