简体   繁体   中英

wordpress - no custom posts showing past page 1

In my wordpress site, I added

<?php query_posts( 'post_type=sword'); ?>

above my loop, so my custom post type 'sword' now shows. Great, everything looks as it should, until I go to the next page - nothing. No custom posts past page one. Is this a pagination issue? And how do I solve this?

edit: if this involves much more than adding a one-liner, like I did for query_posts, I apologize for my ignorance. I would dig deeper if I only knew where to start

通过检查此处的所有循环示例开始进行挖掘。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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