WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how do you get the rss CHANNEL title using wp_rss? (3 posts)

  1. webdevguy2
    Member
    Posted 6 years ago #

    I can get the feed items but how do I get the channel title?

    Thanks

  2. Kafkaesqui

    Posted 6 years ago #

    You can't. At least not through wp_rss(). To get the channel title look at using fetch_rss() instead. Example:

    <?php
    $woof = fetch_rss('http://example.com/feed/');
    echo $woof->channel['title'];
    ?>

    You may be better off learning fetch_rss() if you want to customize the output of feed(s):

    http://codex.wordpress.org/Function_Reference/fetch_rss

  3. webdevguy2
    Member
    Posted 6 years ago #

    Kafkaesqui - many thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic