Loading... 我在feedsky申请了一个feed地址<span class="external-link"><a class="no-external-link" href="http://feed.feedsky.com/feed" target="_blank"><i data-feather="external-link"></i>http://feed.feedsky.com/feed</a></span> 绑定域名后为<span class="external-link"><a class="no-external-link" href="http://feed.crazycen.com" target="_blank"><i data-feather="external-link"></i>http://feed.crazycen.com</a></span> 但是wordp默认的为<span class="external-link"><a class="no-external-link" href="http://www.crazycen.com/feed" target="_blank"><i data-feather="external-link"></i>http://www.crazycen.com/feed</a></span> 那么如何修改呢! 来看解决方案: 在wordpress的源代码编辑页面找到header.php 找到以下内容 [cc lang=html]<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php $options = get_option('crazycen_options'); if ($options['feed_url']) {echo($options['feed_url']);} else bloginfo('rss2_url'); ?>" />[/cc] 将其改为(部分主体可能不一样,大家按着推理就可以了) [cc]<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<span class="external-link"><a class="no-external-link" href="http://feed.crazycen.com"" target="_blank"><i data-feather="external-link"></i>http://feed.crazycen.com"</a></span> />[/cc] 改好之后就把RSS地址修改为<span class="external-link"><a class="no-external-link" href="http://feed.crazycen.com" target="_blank"><i data-feather="external-link"></i>http://feed.crazycen.com</a></span> Last modification:October 6, 2023 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 如果觉得我的文章对你有用,请随意赞赏
One comment
谢谢你的分享啊 不错呀