WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Howto adjust /feed/ (4 posts)

  1. Henkdekoning
    Member
    Posted 3 years ago #

    Hi,

    the websiteurl/feed/ shows a page which I would like to edit. Which .php file is used for that. It is not wp-rss.php/wp-rss2.php right?

    The problem is that it shows links to my movies which I host so people can download them without going to my site first. I want to disable that

  2. tandrei2000
    Member
    Posted 3 years ago #

    Go tu Admin Panel - Permalink and change your permalink - use costum structure and ad this /%category%/%postname%/ Save and try http://www.yoursitename.com/feed/

  3. Henkdekoning
    Member
    Posted 3 years ago #

    thx but that does not seem to work?

  4. Henkdekoning
    Member
    Posted 3 years ago #

    Fixed,

    I ceated a functions.php and added the code:

    <?php
    function delete_enclosure(){
    return '';
    }
    add_filter( 'get_enclosed', 'delete_enclosure' );
    add_filter( 'rss_enclosure', 'delete_enclosure' );
    add_filter( 'atom_enclosure', 'delete_enclosure' );
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags