function insertFootNote($content) {
if(!is_feed() && !is_home()) {
$content.= "<p class='subscribe'>";
$content.= "<h4>Enjoyed this article?</h4>";
$content.= "<p>Subscribe to our <a href='http://feed.imbolo.com/'>RSS feed</a> and never miss a recipe!</p>";
$content.= "</p>";
}
return $content;
}
add_filter ('the_content', 'insertFootNote');
以上就是安达网络工作室关于《wordpress 自动在正文内容后添加内容》的一些看法。更多内容请查看本栏目更多内容!
wordpress操作数据库用一个全局变量$wpdb来进行各种操作,应用的时分先在函数申明global $wpdb,而后调用它...
我想这对沙发同窗不太偏心吧。昨天在看yinheli同窗的《鼠标悬浮完成显示留言内容》一文(倡议看看,好文章)...
首先从wordpress顺序index.php动手: 复制代码代码如下:define('WP_USE_THEMES', true); /** Loads the Wor...
本文实例讲述了Wordpress主动将蕴含长链接的评论标志为渣滓评论的办法。分享给大家供大家参考。详细剖析如下...
本文实例讲述了Wordpress将选中内容分享到新浪腾讯微博的办法。分享给大家供大家参考。详细办法如下: 1、引...
Some Chinese Please插件能够阻拦不带中文字的留言,本博客不断在用成果不错,不写入数据库,可无效地缩小s...