full content of rss feed at my other site

  • Unknown's avatar

    I am use the code to display our rss feed from our blog from this url http://msplweb.wordpress.com/feed/
    but i see the partially content of the blog description ,
    how i get the full description of the blog.

    code is here:-
    <?php
    // read_rss(display_n_items,feed_url)
    function read_rss($display=5,$url=”) {
    $doc = new DOMDocument();
    $doc->load($url);
    $itemArr = array();
    foreach ($doc->getElementsByTagName(‘item’) as $node) {
    //print_r($node);
    if ($display == 0) {
    break;
    }

    $itemRSS = array (
    ‘title’ => $node->getElementsByTagName(‘title’)->item(0)->nodeValue,
    ‘description’ => $node->getElementsByTagName(‘description’)->item(0)->nodeValue,
    ‘link’ => $node->getElementsByTagName(‘link’)->item(0)->nodeValue,
    //’author’ => $node->getElementsByTagName(‘author’)->nodeValue,
    ‘pubdate’ => $node->getElementsByTagName(‘pubDate’)->item(0)->nodeValue
    );

    array_push($itemArr, $itemRSS);

    $display–;
    }
    return $itemArr;
    }
    ?>

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

  • Unknown's avatar

    http://msplweb.wordpress.com/ has been deleted, so you won’t get more feeds from it.

    Are you asking about displaying feed from your blog on another site which you pay to host somewhere?

    At wordpress.com we do not have access to php or any of the underlying codes…

  • The topic ‘full content of rss feed at my other site’ is closed to new replies.