I’m trying to add the nextgen gallery to my home page using this code:
<?php echo do_shortcode(‘[slideshow id=1 w=475 h=390]‘); ?>
However, upon adding that to my index.php, I receive the error:
Parse error: syntax error, unexpected ‘[‘ in /home2/toricola/public_html/wp-content/themes/optimize/index.php on line 18
It seems as though it doesn’t recognize the short code.
How do I make this work? Thanks.
- The topic ‘Nextgen Gallery do_shortcode not working?’ is closed to new replies.