首页    >    新闻资讯    >   如何在RSS中提醒读者在你的博客上留言

如何在RSS中提醒读者在你的博客上留言

大部分博客都喜欢收到读者的留言。以下是一个在RSS上显示一段提示信息,提醒读者去你的博客留言的方法。

但是有时候,我们的日志也许会因为某些原因而关闭评论,此时RSS中自然也不希望出现提醒留言的信息。这样改如何处理呢?

打开functions.php,在里面加上:

function rss_comment_footer( $content ) {
    if ( is_feed() ) {
        if ( comments_open() ) {
            $content .= "

Comment is open. You can participate in the discussion
by visiting <a href='".get_permalink()."'>here</a>
";
        }
    }
    return $content;
}

大功告成!记得把提醒信息换成你自己写的文字。

原文:How to: Suggest your visitors to leave comments in your rss feed

分类:新闻资讯

标签:, ,

* 版权声明:作者WordPress啦! 转载请注明出处。

kadıköy escortbostancı escortataşehir escortbostancı escortmaltepe escortmaltepe escortanadolu yakası escortanadolu yakası escortataşehir escortbostancı escortistanbul escortkartal escortbostancı escortkartal escortkadıköy escortpendik escortpendik escortmaltepe escortataşehir escortmaltepe escortmaltepe escortanadolu yakası escortkadıköy escortataşehir escortkadıköy escortataşehir escortümraniye escortataşehir escortkartal escortescort bayankartal escortpendik escortkartal escortgöztepe escorttuzla escortkadıköy escortkartal escortkadıköy escortmaltepe escortkartal escortataşehir escortmaltepe escortbostancı escortkartal escortpendik escortkadıköy escortataköy escortavrupa yakası escortataköy escortbakırköy escortbeylikdüzü escorttaksim escorthalkalı escortetiler escortbodrum escortmalatya escortankara escortantalya escortmersin escortantalya escortHacklinkHacklinkshellwso shellwso shellgörüntülü sohbettipobetbahis siteleri