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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -