
The problem which I meet today seems to be a simple one but it took me some hours to fix it. It is about displaying pagination for are Custom Post Type in a page.
I registered a custom post type "
projects" and I wanted to display all projects into are page which I called "
Projects".
I created a template "template-project.php" file where I have a loop to get all projects.
I edit the page "
Projects", and select the template "
Projects template".
Everything is going perfect except for pagination. When I click on next page it displays the content from a specific post instead of the second page with a list of projects.
You can't create a "page" which use the same name as you registered your custom post type, in my case "
projects". Give other name to you page or change the permalink and the problem will be fixed.
