SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard jag5311's Avatar
    Join Date
    Jan 2003
    Location
    Somewhere in Indiana
    Posts
    3,082
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I link an image in RSS?

    Given the following code, I want to link the description to the PERMALINK.

    Code:
     <MTEntries lastn="15">
     <item>
     <title><$MTEntryTitle remove_html="1" encode_xml="1"$></title>
     <description><$MTEntryExcerpt encode_xml="1"$></description>
     <link><$MTEntryPermalink encode_xml="1"$></link>
     <guid><$MTEntryPermalink encode_xml="1"$></guid>
     <category><$MTEntryCategory remove_html="1" encode_xml="1"$></category>
     <pubDate><$MTEntryDate format_name="rfc822"$></pubDate>
     </item>
     </MTEntries>
    How do I do this? Right now, only the TITLE links.

    Thanks

  2. #2
    Non-Member
    Join Date
    Mar 2005
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    The URL which you provided in the link element is linked to the title. Hence, you don't have an option to directly link to the description.

    However, you can add a link in your description using the HTML anchor tag. This way you can easily link to your permalink from your description.

    Remember to use &lt; and &gt; for < and > in ur XML.

    Code:
    <descriptiopn> This is ur description  
    
    &lt;a href="http://ur-website.com" &gt; Parmalink &lt;/a&gt; 
    
    </description>
    Hope this helps you out!

    ------------------------------------------------------------------

    Mustafa Khundmiri is the co-founder of http://www.rapidfeeds.com - A Free online service, which helps anyone, create, edit, publish and track RSS feeds. Sign Up for your FREE account and learn how to Create and Publish your own RSS Feeds today!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •