WordPress.org

Ready to get started?Download WordPress

Forums

Modify links in the RSS2 feed? (2 posts)

  1. 3stripe
    Member
    Posted 8 years ago #

    Hi folks, happy new year!

    I was wondering how to tweak the RSS2 feed so that the links are slightly different.. I'm using WordPress as a CMS for a Flash website, so the links need to point to that, and not the html page...

    So instead of:
    <link>http://www.website.com/?p=15</link>

    You would have maybe:
    <link>http://www.website.com/flashwebsite.html?postid=15</link>

    Do I need to modify feed-functions.php? (I'm using WP 1.5 btw)

    Cheers,

    James

  2. 3stripe
    Member
    Posted 8 years ago #

    Worked it out :-D

    In wp-rss2.php, I changed the <link> line to go like this:

    <link>http://www.website.com/?postid=<?php the_ID(); ?></link>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags