How to Create a WordPress Custom RSS Feed to Replace the Default RSS Feed

September 17, 2013 | By Regaz | Filed in: Uncategorized.

The Tutorial shows you Step by Step How to Create a WordPress Custom RSS Feed to Replace the Default RSS2 Feed.

The Procedure is Especially Good when the WordPress RSS Feed Simply Do Not Work or You Just Want a Different RSS Feed instead of the Default One and So You Urge a WordPress Custom RSS Feed.

The Guide Includes all the Commands and Instructions Involved in Creating a WordPress Custom RSS Feed.

The WordPress Custom RSS Feed is a Perfect Solution for WordPress Issues:

  • WordPress Feed 400 Page Not Found

  • WordPress Feed 500

Wordpress Custom RSS Feed - RSS Wave
  1. Access Your Current Template Folder

  2. Create a custom-rss.php File

  3. Inserts:

     $length) 
    return (preg_match('/^(.*)\W.*$/', substr($string, 0, $length+1), $matches) ? $matches[1] : substr($string, 0$
    return $string; 
    }
    $posts = query_posts('showposts='.$numposts);
    $lastpost = $numposts - 1;
    header("Content-Type: application/rss+xml; charset=UTF-8");
    echo '';
    ?>
    
    
    tutorialforlinux.com E-mail Update
    https://tutorialforlinux.com/
    The latest blog posts from tutorialforlinux.com.
    en-us
    post_date_gmt) ); ?>
    post_date_gmt) ); ?>
    info@tutorialforlinux.com
    
    
    <?php echo get_the_title($post->ID); ?>
    ID); ?>
    post_content, 500).'

    Keep on reading$ post_date_gmt) ); ?> ID); ?>

    Set the “$numposts” Variable to Change the Number of Posts Included in Feed!

  4. Latest Make a New Page

  5. Then the Feed Should be Enabled to the Page URL


Tags: