Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTim Humble
Full Stack JavaScript Techdegree Student 11,395 PointsGetting a parse error upon installation of new Wordpress theme
Hi all,
I've just bought and installed a wordpress theme, but am getting the following parse error after I install it.
Parse error: syntax error, unexpected ‘[‘ in /nfs/c08/h01/mnt/153229/domains/foxcafe.humble.biz/html/wp-content/themes/rica/woocommerce/woocommerce.php on line 172
Line 172 is the second line below, but I can't for the life of me see the issue:
function g5plus_woocommerce_product_related_posts_relate_by_category() {
return g5plus_get_option('related_product_condition')['category'] == 1 ? true : false;
}
I've hit up the theme developer for support, but they are offline for the next 14 hours and I need to get to work on this project urgently.
May thanks. Any help would be greatly appreciated.