• After appearance of tags in the new WordPress, I got to the idea of their insertion in the RSS feed. Is there a spesial tag for it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter unclesam

    (@unclesam)

    Nobody seems to know?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Never thought _I_ would help out UncleSam in these circumstances…

    See the bottom half of this post on my blog. It starts at the part that says “Adding tags to my feeds”.

    Adding WordPress tags to your RSS feeds is pretty simple. Just save the code on that blog to a file in wp-content/plugins, activate it, and you should be good to go.

    Edit: For those who want to just see the (ugly) code:

    <?php
    /*
    Plugin Name: Add Tags to Feeds
    Plugin URI:
    Description: This adds WP 2.3 tags to your feeds.
    Author: Jan Dembowski
    Author URI:
    Version: 1.0
    */
    
    function addTagsToFeed($content) {
    global $my_tags;
    ob_start();
    the_tags();
    $my_tags = ob_get_clean();
    if(is_feed()) {
    return $content."<p class=\"tags\">".$my_tags."
    ";
    } else {
    return $content;
    }
    }
    add_filter('the_content', 'addTagsToFeed');
    ?>

    It’s hacked from Angsuman’s copyright notice plugin for feeds.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP tags list in rss feed’ is closed to new replies.