Formatting Images for RSS With WordPress

by Jason

in Tutorials

Here is a quick tip that you may find use­ful if you’ve been fol­low­ing my RSS series.  You may notice that when you check your own feed in a RSS reader, the images do not wrap cor­rectly.  This is because when you’re nor­mally set­ting up your images, the align­ment is set with CSS. Thing is, Google Reader, and most other RSS read­ers do not cur­rently read that code (i.e. <img class=“aligncenter size-thumbnail wp-image-170″). Any spe­cial align­ments that you do will not show up the way you intended in your RSS feed. Unless…

How To Setup Your Images In WordPress

  1. Click the Add an Image button
  2. Add your image
  3. (Note, if this is the first thing read­ers will see, after you insert the image press enter to add a break (in visual mode), if this is going to be pre­sented later on inside your post, make sure you press enter (to add a break in visual mode) then add the photo, then add another break before writ­ing your text)
  4. Go to HTML mode, and make sure you change the class to <img class=“center” or “right” or what­ever your goal is if you wish it to show up the same in both feeds.

This will allow your images to appear the way you intended them.  Please remem­ber, the main thing is to include the “breaks” before and after the image.  If you do not care about the align­ment, or are using a plug-in that requires cer­tain code, you do not have to change the align func­tion.  But you DO need to insert the breaks. I hope you enjoyed this quick tip and I’ll talk to you soon.

{ 2 comments… read them below or add one }

Vicki Kolovou October 28, 2009 at 6:19 am

Hi I like your tutorials, very informative.

Have you written anything about including images in the RSS feed? I thought it was included in WP feeds but unfortunately ours doesn’t show any, like other feeds.
Could you point me in the right direction? Is it a matter of the theme? Is their code I should include? Thank you

Jasper
Twitter:
February 16, 2010 at 10:30 am

I have the same question as Vicky Kolovou. Been roaming the web for a while to show images in Wordpress feeds. If I load WP feeds into other pages or read a WP feed in Firefox I cannot see images. Safari does show them under the proper settings. For me to load Wordpress RSS feeds as well as images into an external site is the main goal. So far I have only been able to show thumbnails to attached images. Hope you can help me out here…
Jasper´s last blog ..Youtube Video plaatsen op Blog My ComLuv Profile

Leave a Comment

  Twitter ID (ID only. No links or "@" symbols)

Previous post:

Next post: