简体   繁体   English

Wordpress中损坏的类别/标签上一个条目/下一页链接

[英]Broken Category/Tag Previous Entries/Next page links in Wordpress

When I view the list of posts in one category the links for Previous Entries/Next Page are broken: Instead of: /blog/category/category-name/page/2/ 当我查看一个类别中的帖子列表时,“上一个条目” /“下一页”的链接断开了:代替:/ blog / category / category-name / page / 2 /

I get: /blog/page/2/?category_name=category-name And that takes me to page/2/ of all my blog posts so page 2 of category-name is not accessible. 我得到:/ blog / page / 2 /?category_name = category-name然后,我进入所有博客文章的page / 2 /,因此无法访问category-name的页面2。

I changed some code in my template but I couldn't get it working. 我在模板中更改了一些代码,但无法正常工作。 Can anyone help? 有人可以帮忙吗? Have you got any snippets of how to implement it? 您有如何实现它的摘要吗?

It's long to explain in detail. 需要详细解释很长时间。 See this Wordpress Codex guide: 请参阅此Wordpress Codex指南:

http://codex.wordpress.org/Next_and_Previous_Links http://codex.wordpress.org/Next_and_Previous_Links

And this function reference: 并且此函数参考:

http://codex.wordpress.org/Function_Reference/next_post_link http://codex.wordpress.org/Function_Reference/next_post_link

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

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