The MU forums have moved to WordPress.org

Fetch RSS and the_author_login (2 posts)

  1. PBO
    Member
    Posted 16 years ago #

    How can I incorporate <?php the_author_login(); ?>

    which will lead to

    mymainblog.com/author/"the_author_login"/feed/

    and add it to the Fetch RSS Code Below

    <h2><?php _e('Headlines from AP News'); ?></h2>
    <?php // Get RSS Feed(s)
    include_once(ABSPATH . WPINC . '/rss.php');
    $rss = fetch_rss("http://mymainblog.com/author/bugsbunny/feed");
    $maxitems = 5;
    $items = array_slice($rss->items, 0, $maxitems);
    ?>
    <ul>
    <?php if (empty($items)) echo '<li>No items</li>';
    else
    foreach ( $items as $item ) : ?>
    <li><a href='<?php echo $item['link']; ?>'
    title='<?php echo $item['title']; ?>'>
    <?php echo $item['title']; ?>
    </a></li>
    <?php endforeach; ?>
    </ul>

    THanks

  2. Arlo Gilbert
    Member
    Posted 16 years ago #

    I have this same problem

About this Topic

  • Started 16 years ago by PBO
  • Latest reply from Arlo Gilbert