PHP syntax error?
-
Here is my code for get_posts…
<?php global $post; $batch1= get_posts(‘numberposts=2'); $batch2= get_posts(‘numberposts=3&offset=1'); $batch3= get_posts(‘numberposts=5&offset=4&order=DESC&orderby=post_date’); ?>
And it’s spitting out this error:
Parse error: syntax error, unexpected ‘=’ in /home/.pottier/joebrooks/joe-brooks.com/wp13/wp-content/themes/sweetnursingtheme/home.php on line 31
Any ideas what I’m doing wrong? Line 31 is:
$batch1= get_posts(‘numberposts=2');
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘PHP syntax error?’ is closed to new replies.