wordpress自动草稿
Do you notice when you visit WPBeginner, on the URL bar there is a RSS Icon. Often you will see this icon on sites that have set their RSS Feeds on auto discovery. By setting auto-discovery you are encouraging your users to subscribe, and also you are informing those who don’t know to subscribe as well. Most themes ignore this feature which might be a single most important feature that you should have in your themes. In this tutorial, we will show you how you can setup auto discovery for your WordPress RSS Feeds.
在访问WPBeginner时,您是否注意到URL栏上有一个RSS图标。 通常,在将RSS Feed设置为自动发现的网站上,您通常会看到此图标。 通过设置自动发现,您既可以鼓励用户订阅,也可以通知不知道订阅的用户。 大多数主题会忽略此功能,这可能是您应该在主题中拥有的一个最重要的功能。 在本教程中,我们将向您展示如何为WordPress RSS源设置自动发现。
Open your header.php and paste the following codes above the </head> code.
打开header.php ,将以下代码粘贴到</ head>代码上方。
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo(‘rss2_url’); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo(‘rss_url’); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo(‘atom_url’); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’); ?> RSS Comments Feed" href="<?php bloginfo(‘comments_rss2_url’); ?>" />
Many credible sites in the industry has taken this step to ensure that their readers subscribe to their sites. You should check if these codes are in your header file, if not then then you should add it. Don’t forget if you want to track your RSS Subscribers, then you should redirect your feeds to FeedBurner.
行业中许多可信的站点已采取此步骤,以确保其读者订阅其站点。 您应该检查这些代码是否在头文件中,如果不是,则应添加它们。 不要忘记是否要跟踪RSS订阅者,那么您应该将提要重定向到FeedBurner 。
翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-setup-auto-discovery-for-your-wordpress-rss-feeds/
wordpress自动草稿