简体   繁体   English

通过wordpress循环排序类别

[英]order categories through wordpress loop

using query_posts 使用query_posts

<?php query_posts("&cat=775,777,779&posts_per_page=12&orderby=date");?>

<?php while (have_posts()) : the_post(); ?>

i'm trying to run through 3 categories and post like so... 我正在尝试通过3个类别,并像这样发布...

cat1post1, cat2post1, cat3post1, cat1post2, cat2post2, cat3post2, etc... and order by date... can this be accomplished with only 1 loop? cat1post1,cat2post1,cat3post1,cat1post2,cat2post2,cat3post2等...并按日期排序...仅用1个循环就能完成吗?

对于这种类型的自定义帖子排序,您可以安装一个名为: aStickyPostOrderER的Wordpress插件,它可以自定义WordPress(2.3+版本)博客中每个类别,每个标签或全部的帖子显示顺序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM