Parse error: syntax error, unexpected (T_STRING) In WordPress : How I Solved It

Yesterday, a client requested I add a woocommerce slider to her ecommerce site. I installed the free woocommerce product slider plugin but after inserting it’s shortcode in a WordPress theme file, the site became inaccessible.

web design wordpress parse syntax error

Whenever I try accessing any of the pages of the website, I get the error below:

Parse error: syntax error, unexpected ‘Feature’ (T_STRING) in /home4/wac2pi0abqbi/public_html/wp-content/themes/netdivoflexchild/index.php on line 2

After googling it, I discovered that the error was thrown because of the use of ” instead of ‘ in the shortcode below:

<?php echo do_shortcode(“[wpb-feature-product title=Feature Products]”); ?>

The error was fixed by using the shortcode below, instead of the one above.

<?php echo do_shortcode(“[wpb-latest-product title=Feature Products]”); ?>

So, if you encounter similar error, try using ‘ instead of ” in your code.

Please Share :

See also :   5 Ways To Earn From Blogging Without Waiting For Adsense

Written by Jide Ogunsanya

Pro Nigerian Blogger, Digital Marketer and Web designer. I help business owners to grow their businesses online. You can join my Facebook Group here.

One Comment

Leave a Reply

Leave a Reply

We're glad you have chosen to leave a comment. Please keep in mind that comments are moderated according to our comment policy. Your email address is required but will not be published. No keyword stuffing in the name field and commenting from blah blah blah makes no sense. Thank You.

  • Do You Want To Work At Dubai ?Click Here
  • You Can Make Money Promoting Other People's ProductsRead More
  • Interested in starting data plans reselling business?Click Here
  • Want To Join A Forum Where You Can Discuss Blogging?Click Here
  • NetDivo ePin Manager Lets You Print Airtime Of All NetworksLearn More

How To Make Blogger Mobile Pagelist Drop Down Menu Display Like Webview

WPB Woocommerce Product Slider Plugin Lets You Display Products As Slider On WordPress