标签: 添加广告

WordPress文章内页中添加广告

将代码,复制粘贴到你的WordPress主题当中的“functions.php”文件的最后一个?>后面即可. //在文章内容的第二段后面插入广告 add_filter( ‘the_content’, ‘prefix_insert_post_ads’ ); function prefix_insert_post_ads( $content ) { $ad_code = ‘<div>
阅读更多 »