• How can I add

    <?php the_author_login(); ?>

    in

    <?php
    require_once (ABSPATH . WPINC . ‘/rss-functions.php’);
    // here’s where to insert the feed address
    $rss = @fetch_rss(“http://example.com/author/&lt;?php the_author_login(); ?>/feed/”);
    if ( isset($rss->items) && 0 != count($rss->items) ) {
    ?>

    <?php
    // here’s (5) where to set the number of headlines
    $rss->items = array_slice($rss->items, 0, 5);
    foreach ($rss->items as $item ) {
    ?>

    ‘>
    <?php echo wp_specialchars($item[‘title’]); ?>

    <?php } ?>

    <?php } ?>

    Just like the bolded text

    Nothing shows up. Thanks

  • The topic ‘Author in Fetch RSS’ is closed to new replies.