RSS not working – parse error
-
I’ve just installed WordPress and while everything else is working well, when I attempt to use RSS, I get this error message.
“Parse error: parse error, unexpected $ in /virtual/users/e13071-12435/web/blog/wp-feed.php on line 33”
I’m a newbie, but as far as I can tell, there are only 32 lines in this code – I’m totally lost. Any help would be appreciate.
Cheers!
<?php
if (empty($doing_rss)) {
$doing_rss = 1;
require(dirname(__FILE__) . ‘/wp-blog-header.php’);
}// Remove the pad, if present.
$feed = preg_replace(‘/^_+/’, ”, $feed);if ($feed == ” || $feed == ‘feed’) {
$feed = ‘rss2’;
}if ( is_single() || ($withcomments == 1) ) {
require(ABSPATH . ‘wp-commentsrss2.php’);
} else {
switch ($feed) {
case ‘atom’:
require(ABSPATH . ‘wp-atom.php’);
break;
case ‘rdf’:
require(ABSPATH . ‘wp-rdf.php’);
break;
case ‘rss’:
require(ABSPATH . ‘wp-rss.php’);
break;
case ‘rss2’:
require(ABSPATH . ‘wp-rss2.php’);
break;
case ‘comments-rss2’:
require(ABSPATH . ‘wp-commentsrss2.php’);
- The topic ‘RSS not working – parse error’ is closed to new replies.