摘要:
Yet Another Related Posts Plugin(YARPP) 插件会自动提取和本页面相关的博客,显示出来。不过效果,在月小升的博客里不是特别的好。 采用自定义办法吧。 直接和tag相关的文章都展示出来。 将一下代码插入wordpress模板文件single.php文件下<?php the_content(); ?>后面即可。 global $post;$post_tags = wp_get_post_tags($post->ID);if ($post_tags) {foreach ($post_tags as $tag) { // 获取标签列表 $tag_l 阅读全文