The MU forums have moved to WordPress.org

Sitewide feed and planet news (2 posts)

  1. topherrosado
    Member
    Posted 18 years ago #

    I'm using the sitewide feed plugin, and I've got the Planet Feed displaying the sitewide feed. I've got a couple of things I'd like to do, but I need to be pointed in the right direction.

    1) Have the name of the blog appear in the box. Previously, the post title was appearing twice, and I couldn't find any resolution to this in the forums.

    2) I'd like the posts from the main blog (or any others I specify) to be styled differently from the others.

    Any help would be most appreciated :)

  2. topherrosado
    Member
    Posted 18 years ago #

    I figured out #2, and this is what I did:

    $rss->items = array_slice($rss->items, 0, 15);
    foreach ($rss->items as $item ) {
    ?>
    <?php if ($item['author'] == 'Christopher Rosado') { ?>
    <li class="gtr-admin"><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a></li>
    <?php } else { ?>
    <li class="blogs"><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a></li>
    <?php
    }
    }
    ?>

    It's a hack though, and not ideal. I'd prefer to use the blog ID instead of my name but I haven't been able to get that to work. Any ideas?

About this Topic

  • Started 18 years ago by topherrosado
  • Latest reply from topherrosado