php - Parse error: syntax error, unexpected T_STRING -
after inserting shortcode wordpress theme i'm building, received following error:
parse error: syntax error, unexpected t_string in /home/content/70/11104970/html/wp-content/themes/theme/cait.php on line 11
the bit of code in question:
<div class="vlog-stream"> <?php echo do_shortcode('[ix_show_latest_yt ytid='caitbarker' width='280' height='170' autoplay='off' count_of_videos='1']'); ?> <p>vlog</p> </div><!-- end vlog-stream -->
the entire file can found here.
when i've received error in past, result of either spaces or use of "
instead of '
. i've checked , corrected both of these things , still problem persists.
indeed problem seems quotes. need escape them or use combination of double quotes , single quotes:
<?php echo do_shortcode("[ix_show_latest_yt ytid='caitbarker' width='280' height='170' autoplay='off' count_of_videos='1']"); ?>
a tip @ syntax highlighting, see how looks correct compared question?
Comments
Post a Comment