Viewing 4 replies - 1 through 4 (of 4 total)
  • Open up your wp-feed.php file and take a look at the two descriptions lines. I would hard code it into those right before the trailing description. For example:

    <description><![CDATA[<?php the_excerpt_rss() ?>]]><br /><a href="https://www.thepokerbiz.com">My Site</a></description>

    That should work. I haven’t tried it but I don’t see any reason why it shouldn’t.

    Hope this helps,
    -drmike

    Thread Starter Ronin

    (@ronin)

    Thanks drmike. Here is my entire wp-feed.php file, can you show me where exactly to paste that code?

    <?php

    if (empty($doing_rss)) {
    $doing_rss = 1;
    require(dirname(__FILE__) . ‘/wp-blog-header.php’);
    }

    // Remove the pad, if present.
    $feed = preg_replace(‘/^_+/’, ”, $feed);

    if ($feed == ” || $feed == ‘feed’) {
    $feed = ‘rss2’;
    }

    if ( is_single() || ($withcomments == 1) ) {
    require(ABSPATH . ‘wp-commentsrss2.php’);
    } else {
    switch ($feed) {
    case ‘atom’:
    require(ABSPATH . ‘wp-atom.php’);
    break;
    case ‘rdf’:
    require(ABSPATH . ‘wp-rdf.php’);
    break;
    case ‘rss’:
    require(ABSPATH . ‘wp-rss.php’);
    break;
    case ‘rss2’:
    require(ABSPATH . ‘wp-rss2.php’);
    break;
    case ‘comments-rss2’:
    require(ABSPATH . ‘wp-commentsrss2.php’);
    break;
    }
    }

    ?>

    Cheers

    Thread Starter Ronin

    (@ronin)

    DrMike … paging DrMike …

    Keep in mind that all volunteers are unpaid and have lives. ??

    That’s not the file you want to mangle. You probably want to start with wp-rss2.php where the feed is actually built.

    And you probably want to consider doing it with a plugin so you don’t lose your changes each time you upgrade WordPress.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding URL to RSS feed’ is closed to new replies.