D
D
Dima Shishkin2018-06-30 13:58:20
WordPress
Dima Shishkin, 2018-06-30 13:58:20

How to make pagination in WordPress with the same slug of the page with the feed of the posts and the slug of the post?

I have a post type with the blog slug, that is, posts will open at the url:
domain.com/blog/post-name
All these posts are displayed on the page with the following url:
domain.com/blog
If you try to paginate, then problems begin , there will be no content on the second page:
domain.com/blog/page/2
If you change the slug of the page with the list of posts or the slug of the post type, then everything will work fine. But it is important for me that the slug would be just like that. How can this be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iwebdesigner, 2019-07-18
@iwebdesigner

Perhaps someone will find this solution useful.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question