0 355

It’s been a long time now since my last post and I really missed sharing knowledge, snippets and more, now I’d like to give you one useful snippet and this always happen when adding WordPress pagination specially in custom post type, without lot of words, let’s start.


  • The most and only main reason of 404 page not found is the post-type name should not have the same with the current page slug.
    e.g. /course/course/ or it can be mean as /page-slug/post-type
  • After you made changes in your code make sure to update permalinks in WP Dashboard, how? Just hit update or choose default permalink and go back to where it was before.
  • Another reason is the permalink “format”, e.g. you’d coded different permalink structure like ?paged=%#% and in your WP permalink setting is %postname% so in that case they have different formats and that lead to 404 error, how can I correct this? Simple you just need to make both in same format like /page/%#% in code and %postname% in WP dashboard.

If you think you have a good solution out there, feel free to share.

You might also like More from author

Leave A Reply

Your email address will not be published.