php - pagination not working with permalink postname

278

I know most of the people have faced with this problem.With pagination the first page is showing correctly and the second page link gets like 'services/paged/2/' -page not found .And my problem is, though it is in wordpress what i am showing on the page is not posts content from a category,There is a table in my database which stores some registration information and that information is to be shown on my website.The query is so normal as we do for php site

     select * from registration

What I am doing is a normal php pagination ,but when it comes to linking the wordpress pagination does affects.what to do without any change in my permalink custom structure .Please help

155

Answer

Solution:

The correct way to do this would be to add in custom routing for your pagination. Wordpress needs to know that paged/2 refers to pagination and not a page. Currently it doesn't, which is why you're getting a 404. You'll also need to then rewrite your query to use the pagination parameters provided in the query string.

People are also looking for solutions to the problem: php - FULLTEXT not returning some searched words

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.