Return to Snippet

Revision: 33463
at October 8, 2010 22:33 by PM-Webdesign


Initial Code
function custom_feed_link($output, $feed) {

$feed_url = 'http://feeds.feedburner.com/wpbeginner';

$feed_array = array('rss' => $feed_url, 'rss2' => $feed_url, 'atom' => $feed_url, 'rdf' => $feed_url, 'comments_rss2' => '');
$feed_array[$feed] = $feed_url;
$output = $feed_array[$feed];

return $output;
}

function other_feed_links($link) {

$link = 'http://feeds.feedburner.com/wpbeginner';
return $link;

}
//Add our functions to the specific filters
add_filter('feed_link','custom_feed_link', 1, 2);
add_filter('category_feed_link', 'other_feed_links');
add_filter('author_feed_link', 'other_feed_links');
add_filter('tag_feed_link','other_feed_links');
add_filter('search_feed_link','other_feed_links');

Initial URL
http://www.wpbeginner.com/wp-tutorials/25-extremely-useful-tricks-for-the-wordpress-functions-file/

Initial Description
Code in functions.php einfügen

Initial Title
Wordpress Feed links zu Feedburner leiten

Initial Tags
wordpress

Initial Language
PHP