Link to home
Start Free TrialLog in
Avatar of sydron
sydronFlag for Australia

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?

Avatar of sydron
sydron
Flag of Australia image

ASKER

I have resolved this issue.

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_text = '(more...)', $stripteaser = 0, $more_file = '') {
      $content = get_the_content($more_link_text, $stripteaser, $more_file);
      $content = apply_filters('the_content', $content);
      $content = str_replace(']]>', '', $content);
      echo $content;
}

I will close this question....

Cheers,
ASKER CERTIFIED SOLUTION
Avatar of DarthMod
DarthMod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial