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

September 17, 2013 | By Duchateaux.

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");/necho '';
    ?>
    
    
    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

    • The Page Address will be Url of the New RSS Feed

    • Select as Template custom-rss.php

      Wordpress Custom RSS Feed - Set Custom Template

      If Not Page Template Dropdown Issue Look

      WordPress No Page Template
    • Publish Leaving Empty the Content!
  5. Then the Feed Should be Enabled to the Page URL


QuickChic Theme • Powered by WordPress