Wordpress Feed链接zu Feedburner leiten
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Wordpress Feed链接zu Feedburner leiten相关的知识,希望对你有一定的参考价值。
Code in functions.php einfügen
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');
以上是关于Wordpress Feed链接zu Feedburner leiten的主要内容,如果未能解决你的问题,请参考以下文章
php Wordpress Plugin-Code zur Ausgabe von Infos zu Autor,Kategorie等als Variablen imdataLayerfür