1
votes

I have a blog and all posts (i.e. this post) have videos in hidden div.

I want to display this videos in my [RSS feed.] But not regular blog view.4

By the way i'm using Wordpress.

How i can do it?

Thanks.

2

2 Answers

3
votes

you might want to take a look at RSS enclosures. (see http://en.wikipedia.org/wiki/RSS_enclosure for more information)

here is a code example:

<enclosure url="http://example.com/file.mp3" length="123456789" type="audio/mpeg" />

since you seem to run wordpress, you might want to use specific video-blogging plugins. you can find more information here: http://www.tubetorial.com/wordpress-videoblogging-the-easy-way/

1
votes

Since you say you're using WordPress, I'd recommend setting up a specific category for these video posts (e.g. something like "RSS Only") and then edit your theme files so that category never gets displayed. See Exclude Posts From Some Category « The Loop « WordPress Codex for details on what you need to change in the theme files.