只在Wordpress 第一篇文章后插广告 By Web Master2009/01/092022/02/11网站相关 怎样不使用插件给 Wordpress 的首页和分类页广告的第一篇文章后显示广告呢?下面就是答案。 <?php if ($wp_query->current_post == 0) : ?> 广告代码 <?php endif; ?> 放在 index.php 和 archive.php 的endwhile前。 相关文章: Embed Google Ad in First WordPress Post WordPress 日志修订功能 Blackberry Bold 在Ubuntu/Nginx上禁用TLS 1.0,1.1启用TLS 1.3