Support » Fixing WordPress » Generator Tag in RSS Feed Removal

  • Resolved tahirahmed

    (@tahirahmed)



    Hi,

    Could someone tell me how I would go about removing the WordPress generator tag within the RSS feed? I have found some plugins which remove the WordPress version and generator tag from the overall site, but they fail to remove it from the RSS feed which remains the same.

    I would appreciate it if someone could provide me with some instructions or recommended plugins which would do this for me.

    Regards,

    Tahir

Viewing 4 replies - 1 through 4 (of 4 total)
  • Tahir,

    Again using the WordPress Codex you may want to see Customizing Feeds.

    Thanks,
    Derek M.

    Strange, it added that many replies and it won’t let me edit a single one of them, my apologies.

    Hi Nex2nun,

    Thanks, I have looked over that page and that is exactly what I am after, however, I am not too good with the coding, so after looking at the various files, I still cannot figure out which bit of code I need to remove to get the generator tag removed from the RSS feeds.

    Any ideas? Sorry..

    Hi, found it.. if anyone else is looking also.. here is the information that worked for me:

    The files you need to edit are located in:
    wp-includes/

    And you need to edit the following files if you want to remove the generator tag from all the RSS feeds.

    feed-atom-comments.php
    feed-atom.php
    feed-rdf.php
    feed-rss.php
    feed-rss2-comments.php
    feed-rss2.php

    And just remove the following tag:

    <?php the_generator( ‘rss2’ ); ?>

    Where it states ‘rss2’ this changes for the various feeds. And that seems to be it, after removal, the generator does not appear in the source. Hope that helps.

    Thanks again Nex2Nun.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Generator Tag in RSS Feed Removal’ is closed to new replies.