开发者

Broken Category/Tag Previous Entries/Next page links in Wordpress

开发者 https://www.devze.com 2023-01-14 19:38 出处:网络
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/

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/

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 ac开发者_运维知识库cessible.

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:

http://codex.wordpress.org/Next_and_Previous_Links

And this function reference:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消