This question already exists: wp_query and get_posts() in widget / own code [closed] Closed 3 years ago.admin管理员组文章数量:1291217
I have two different widgets on one of my pages. They both display posts, but from different categories. One widget has pagination. Now when I switch to another page, the 2nd widget doesn't display anything. I suppose this is due to some pre-filtering done on the new page, resulting in no posts of the 2nd widget's target category being in the post list.
Like e.g. all posts from the 2nd widget's category would be on page 1, so they are not available on page 2 since the post query/fetch WP does ahead of loading my page has already skipped them.
本文标签: paginationtemplate with multiple post loops for multiple widgets
版权声明:本文标题:pagination - template with multiple post loops for multiple widgets 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741501090a2382059.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论