Embed RSS Feeds in WordPress

WordPress makes it easy (well, kind of) to embed RSS feeds into your WordPress template, so you can have a feed displayed in your sidebar, footer, or anywhere else you want in your PHP files. To do this, I used a combination of code from Darren Hoyt and Jeriko.

first, from Darren

<?php
require_once (ABSPATH . WPINC . '/rss.php');
$rss = @fetch_rss('RSS FEED HERE');
if ( isset($rss->items) && 0 != count($rss->items) ) {
?>
<ul>
<?php
$rss->items = array_slice($rss->items, 0, NUMBER OF ITEMS);
foreach ($rss->items as $item ) {
?>
<li>

and then the bit from Jeriko

<a href='<?php echo wp_filter_kses($item['link']); ?>'>
  <?php echo wp_specialchars($item['title']); ?>
</a>
</li>
<?php } ?>
</ul>
<?php } ?>

It’s All About the Icons

icons

We live in a visual world.  From ads you see on billboards to french fry containers to web graphics, everything is driven by visual aids.  A picture can say a lot with one glance that text can’t.  Colors, design, and placement convey feeling, mood, and ideas.  It’s evident everywhere we go, whether it’s to McDonalds or a parking lot - images and icons play a big role in conveying a message.  Small wonder that this has taken over the technology world, too.

For me, at least, icons are present in everything I do on the computer.  As my earlier post showed, I organize my Firefox toolbar by favicons, saving space and relying on complete visual recognition.  This means, however, that all my favorite sites had better have a nice looking favicon.  It better be a transparent one, too.

RIM has made icons its focus in their Blackberry phones.  The entire device is organized and sorted by colorful icons.  It’s almost what makes a Blackberry a Blackberry.  Apple, too, has adopted this idea and sorted each application in it’s popular iPhone by a square icon.

The beauty of icons is that they are small, consistent, and eye-catching.  Nobody wants to stare at text links all day - they want an image.  Let’s face it - Google wouldn’t quite be the same company if it weren’t for their simple but colorful logos and favicons.  Twitter wouldn’t feel so comfortable.  RSS wouldn’t have the immediate recognition.

Here are a few tips to creating a friendlier impression for your site.

  • Make sure you have a consistent logo, and that it’s on EVERY page
  • Add a favicon.
  • Use instantly recognizable images for widely-used service (RSS, Twitter, etc)
  • Use colors that go well together.  Your site will do better if people want to look at it.
  • Use, but don’t overuse, image rollovers and effects.
  • That said, try and keep it in CSS, HTML, or JavaScript.  Remember, there are older browsers and slow internet.
  • Try and compress your images sizes as much as you can without losing quality so that they will load faster.  When people come to your site, BAM - there’s your logo.
  • Remove white space from your code and deactivate unused plugins - it’ll increase the load time of your page.
  • Don’t forget the KISS rule - Keep It Simple, Stupid.

Install WordPress on Your Desktop!

Thanks to a recent post by DesiznTech, I have learned that you can actually install WordPress (and a few other CMS) locally, on your desktop! For me, at least, this is an answer to prayer. As a web designer by hobby, having a local way to make changes and design without affecting a live site is great. Before now, I installed WordPress in a separate folder on my account to use as a “sandbox”.

To clarify, I haven’t actually done this yet. Personal situations and upcoming exams have drained me of time and energy, so I haven’t had a chance to try this out. However, I plan to do this as soon as I’m able, and I would encourage you to give it a try. If you do, let me know what you think!

Here is the WAMP Server, which you will need to install PHP, Apache, and MySQL on your desktop, and Jeff Chandler’s tutorial on how to actually install the software.