wordpress自动草稿_如何为您的WordPress RSS Feed设置自动发现

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源设置自动发现。

RSS Auto Discovery

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自动草稿

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值