最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

pagination - Wordpress page2 gives 404 when custom permalinks is set to %category%%postname%

programmeradmin2浏览0评论

My wordpress permalink settings,

Custom Structure: %category%%postname%.

Used next_posts_link() in custom theme in archive.php to get next posts link.

Result: Next Page >> (display as expected)

But when i click the link it redirects correctly to mysite/my_category/page/2. But it results in 404.

Any advice would be appreciated.

My wordpress permalink settings,

Custom Structure: %category%%postname%.

Used next_posts_link() in custom theme in archive.php to get next posts link.

Result: Next Page >> (display as expected)

But when i click the link it redirects correctly to mysite/my_category/page/2. But it results in 404.

Any advice would be appreciated.

Share Improve this question edited Sep 24, 2020 at 13:16 fuxia 107k38 gold badges255 silver badges459 bronze badges asked Sep 16, 2020 at 20:47 AkilanAkilan 1
Add a comment  | 

1 Answer 1

Reset to default 0

your missing a slash in your perma link structure it should be /%category%/%postname%

发布评论

评论列表(0)

  1. 暂无评论