
正文
wordpressgetterm的简单介绍
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
wordpress中get_the_term_list函数什么意思啊
} } return $link;} 该函数可以输出首页、分类法(自定义分类法、标签、分类)、自定义文章类型的存档页面、作者存档页面、日期存档页面 的链接,包含分页。
$relate_post-ID ) ); } }}将wpdit_get_posts_in_same_categories( the_ID() );放于需要的地方,只要指定post_id即可。
the_title(); echo ; endwhile; }else { echo no posts in current category!; }获取指定分类下的某一个文章形式,然后循环输出总检索数量500篇,每页10篇。
return $this_category-term_id; // 返回根分类的id号 } ? 我的想法其实就是通过获取当前post所属的顶级分类ID后,利用 jquery去筛选你菜单中的class,然后增加上current-cat样式就可以了。
php while (have_posts()) : the_post(); ? !–PHP代码 – ?php endwhile; ? ?php endif; ? 这里有两个函数,have_posts()和the_post()。
wordpressgetterm的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于、wordpressgetterm的信息别忘了在本站进行查找喔。






