Skip to content
new ogbongeblog logo
  • Advertise
  • Blog
  • Contact

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

  1. Home
  2. Blog
  3. Uncategorized
  4. Parse error: syntax error, unexpected (T_STRING) In WordPress : How I Solved It
November 15, 2016

Written by

jidetheblogger Avatar
jidetheblogger

Last Modified :

March 6, 2026

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 :
wordpress

Like What You Read?

Sign Up to get similar articles delivered to your email inbox.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

One response to “Parse error: syntax error, unexpected (T_STRING) In WordPress : How I Solved It”

  1. Adesoji Awobajo Avatar
    Adesoji Awobajo
    November 15, 2016

    Wow! Cool sir thanks for the Tip.. Commenting from Safaxnet.com

    Loading…
    Reply

WANT TO ADVERTISE?

Chat on WhatsApp

RELATED POSTS

  • WPB Woocommerce Product Slider Plugin Lets You Display Products As Slider On WordPress
  • Parse Adsense Code for Blogger Template using BlogCrowds HTML Parser
  • How To Add Facebook JavaScript SDK To Blogger Themes Without XML Erroredit html in blogger themes

FEATURED


  • How to Pay Chinese Suppliers in RMB (Alipay & WeChat Pay) or Swap Naira, Kenyan Shillings, Ghana Cedis & USDT in Minutes

    How to Pay Chinese Suppliers in RMB (Alipay & WeChat Pay) or Swap Naira, Kenyan Shillings, Ghana Cedis & USDT in Minutes

JOIN AI WEB DESIGN GROUP


  • AI Website Design Training Whatsapp Group by Jidetheblogger

    AI Website Design Training Whatsapp Group by Jidetheblogger

RANDOM POSTS


    I Got One Free Month of Meta Verified After I Tried to Cancel My Subscription


    How To Make Money On Bamboo App: 5 Proven Ways


    How To Use Vibe Coding To Make Money


    How I Earn $100 Per Referral from Affiliate Marketing


    Bluetooth Printer That Connects To Phone


    Can I Use OPay Card for Facebook Ads?


    Why I Moved My Websites From Namecheap To Interserver.net


    How I Earn $50 Per Sale


MORE RANDOM POSTS
← 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 →

Join 25,000+ subscribers

Receive our latest blog posts in your inbox.

Search

Social

Facebook

Instagram

Twitter

new ogbongeblog logo

Copyright © 2026 | About | Advertise | Featured | Sitemap | Privacy Policy | Powered by WordPress

Your cart (items: 0)

Products in cart

Product
Details
Total
Subtotal ₦0.00
Shipping and discounts calculated at checkout.
View cart
Go to checkout

Your shopping cart is empty

Return to shop

Notifications

%d

    LIKE My Fan Page

    Privacy Policy | Copyright © 2012,OgbongeBlog.All Rights Reserved. Powered by Blogger .
    Create a Mobile Site
    View Site in Mobile | Classic
    Share by: