RSS content:encode won't imort (php)

  • Unknown's avatar

    Hi!

    I’m making a website in a text-editor, and I’m trying to make it possible to post new things on my site without having to work in HTML (so others with no knowledge of html can post new items too)
    I planned to use the RSS of a wordpress site and import that on my own site.
    This is my php code:

    <?php
    
    $html = "";
    $url = "http://lisettehoogenkamp.wordpress.com/feed";
    $xml = simplexml_load_file($url);
    for($i = 0; $i < 10; $i++){
    
    	$title = $xml->channel->item[$i]->title;
    	$content=$xml->channel->item{$i}->content;
    
    	$html .= "<h3>$title</h3>";
    	$html .= "<p>$content</p>";
    }
    
    echo $html;
    
    ?>

    The problem is that in the RSS file, the content is encoded <content:encodeded>. I tried replacing this, but i can’t cat it working. I have almost no experience with php, is there someone who can help me?

    The blog I need help with is: (visible only to logged in users)

  • The topic ‘RSS content:encode won't imort (php)’ is closed to new replies.