Forums

[resolved] How to change RSS output (6 posts)

  1. Blutarsky
    Member
    Posted 1 month ago #

    I wish to modify the default layout of RSS feeds:

    - Make visible only the title of the post

    or

    - tweak the post's body

    In the documentation it is stated that WP uses some templates to do so. Unfortunatelly editing them shows the following:

    <?php
    /**
     * Redirects to the RSS2 feed
     * This file is deprecated and only exists for backwards compatibility
     *
     * @package WordPress
     */
    
    require( './wp-load.php' );
    wp_redirect( get_bloginfo( 'rss2_url' ), 301 );
    
    ?>

    That is it looks like there's no way to customize the output.
    How do I achieve this?

  2. Blutarsky
    Member
    Posted 1 month ago #

    Pizza tonight? :-D

  3. Blutarsky
    Member
    Posted 1 month ago #

    Help anyone?

  4. songdogtech
    Member
    Posted 1 month ago #

  5. WalnutHill
    Member
    Posted 1 month ago #

    You are probably modifying the wrong file. Instead of wp-rss2 you should go to your wp-includes folder and find feed-rss2.php and modify that.

  6. Blutarsky
    Member
    Posted 1 month ago #

    Walnut thanks!

Reply

You must log in to post.

About this Topic