Forum Moderators: open
[edited by: jatar_k at 5:19 pm (utc) on July 25, 2005]
[edit reason] sorry no urls thanks [/edit]
It has 3 required sub-elements:
<url> (The URL of the image)
<title> (describes the image)
<link> (link of the SITE)
and 3 optional sub-elements:
<width> (default is 88-max 144)
<height> (default is 31 - max 400)
<description> (text for the title attribute of the link to the image)
So, you could structure your feed like this:
<image>
<url>http://www.yourwebsite.com/yourimage.jpg</url>
<title>Title of image</title>
<link>http://www.yourwebsite.com</link>
<width>50</width>
<height>150</height>
<description>This is my cool image for my feed</description>
</image>
Here is the code I'm using. Can someone take a look and tell me what I'm doing wrong. I'm really green at this:
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>My Title Here</title>
<link>http://mysite.com</link>
<description>My description is here</description>
<language>en-us</language>
<image>
<url>http://mysite/1.jpg</url>
<title>Title of the photo</title>
<link>http://mysite.com/1.html</link>
</image>
</channel>
</rss>