Help with if statement
-
ok so im editing a single theme file to have it so if the page number is one specific number, it will post a div, but if its any other page it wont post anything.
here is my coding:
<?php if ( is_page('297')) { echo '<div class="content-block widget nopadding"> <div class="block-title"> <span>Beat Store</span> </div> <div class="beatstore "> <object type='application/x-shockwave-flash' height='385' width='610' data='https://www.myflashstore.net/widgets/flash/soundstore.swf?user_id=49626' allowscriptaccess='always'> <param name='movie' value='https://www.myflashstore.net/widgets/flash/soundstore.swf?user_id=49626' /> <param name='menu' value='false' /> <param name='wmode' value='transparent' /> <param name='allowscriptaccess' value='always' /> <param name='flashvars' value='autoplay=0&' /> </object> </div> </div>'; ?>
but im getting the error:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Help with if statement’ is closed to new replies.