Remove TwentyTen child theme standard feeds

When using WordPress as a CMS and not as a blogging tool it is nice to have control over what feeds you are including. Most of the time you will not need the comments feed when using as a CMS. In TwentyTen them the feeds are already included so if you base your child theme on this theme, you will have to switch them off. Here is how you do that…

In themes/twentyten-child/header.php add the following line just above wp_head();

// remove default posts and comments RSS feed links to head
 remove_theme_support( 'automatic-feed-links' );

Then add you own custom feed links in header.php

<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="<?php bloginfo( 'rss_url' ); ?>" />

Make sure you put them in the header outside the PHP tags!

Reageren

Jouw e-mail adres wordt niet gepubliceerd.

Ik heb het privacy beleid gelezen en ga akkoord.