[wp-hackers] Linking stylesheet to RSS feeds

JAYMIN PATEL jayminkapish at inbox.com
Tue Jun 16 14:29:01 GMT 2009


Can you separate images from your content?

if you can, you can put images in media:content or media:thumbnail.

Read more here..
http://video.search.yahoo.com/mrss

- JK

> -----Original Message-----
> From: if.website at gmail.com
> Sent: Tue, 16 Jun 2009 05:39:38 -0500
> To: wp-hackers at lists.automattic.com
> Subject: Re: [wp-hackers] Linking stylesheet to RSS feeds
> 
> On Tue, Jun 16, 2009 at 2:46 AM, RePost <repost_08 at yahoo.com> wrote:
>> I'd like to style my WordPress feed. Can I style the feed? How can I
>> style the feed? Inline, you say? How can I add inline styles to my feed?
> 
> You could make inline markup changes to your feed by conditionally
> attaching a callback filter to "the_content", etc., whenever is_feed()
> returns true:
> 
> if ( is_feed() ) {
>    add_filter('the_content', 'my_rss_markup_replace');
> }
> 
> [snip]
> 
> function my_rss_markup_replace($content = '')
> {
>    return preg_replace('#(<img[^>]*>)#', '<div
> style="margin:10px;">$1</div>', $content);
> }
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!


More information about the wp-hackers mailing list