sydron
asked on
Wordpress RSS parser errors
Hi All,
I am using Word Press for a blog site that i am creating.
I would like my site to read, via RSS, all the updates from another site and show this via posts.
I have imported an RSS XML file into my site. When i do the import, it all work well BUT i have one issue with the parser. It reads the closing tag of the CDATA ( ]]> ) and as a result it displays this in all my posts.
How can i get WordPress to understand this and remove it?
2. What is the best way to get my site to automatically read the new updates from a site and display it on my site?
I am using Word Press for a blog site that i am creating.
I would like my site to read, via RSS, all the updates from another site and show this via posts.
I have imported an RSS XML file into my site. When i do the import, it all work well BUT i have one issue with the parser. It reads the closing tag of the CDATA ( ]]> ) and as a result it displays this in all my posts.
How can i get WordPress to understand this and remove it?
2. What is the best way to get my site to automatically read the new updates from a site and display it on my site?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have noted that in Word Press code, the replace_str function that replaces all occurrences of ]]>, actually does not work.
i simply updated my the_content function to replace the string correctly.
function the_content($more_link_tex
$content = get_the_content($more_link
$content = apply_filters('the_content
$content = str_replace(']]>', '', $content);
echo $content;
}
I will close this question....
Cheers,