Found the answer:
After a looong day debugging thru wordpress core, I managed to solve
this issue.Basicly, you CANT have a PAGE and a CUSTOM POST TYPE with the same
name. If you do, the permalink rewrite rules will get confused and
trigger a 404.A very simple solution I’m using is: The page that lists the custom
post types is called in plural (eg. products) and the actual post type
name is in singular (eg. product). So they dont conflict and it’s all
fine.Done Done! Hope this will save people’s time.
Related Posts:
- Passing and retrieving query vars in wordpress
- Get the current page URL (including pagination)
- Get current URL (permalink) without /page/{pagenum}/
- Why does `get_permalink()` produces an add. DB request without $post->filter?
- Date based URLs for custom posts and pagination
- Adding anchor to paginate_links + Safari anchor bug
- Custom permalink with pagination
- 404 on category.php pagination
- Add ‘articles’ prefix before blog posts url without affecting pagination
- Clean install – Changing permalinks in twentyeleven give 404
- Custom permalink for search and pagination
- wp_logout_url redirects to incorrect page because of pagination
- How to Get Page 2 / Paginated RSS Feed with Custom Permalink Structure?
- Pagination Issue – /page/2 404
- next_posts_link URL does not include name of custom post type
- Why is page/2/ not working?
- Pagination for blog posts reloading same page [closed]
- How to handle paging/pagination with a custom permalink?
- Change permalink structure for pagination only
- Pagination using paginate_links
- Home page Pagination – Other pages do not redirect to home page template
- Pagination url for page template
- problem with pagination in custom permalinks
- Whole site’s pagination not working after rewriting product permalink
- WordPress /page/2 gives 404 when custom permalinks is set to %category%%postname%
- How to get a clean pagination link without variable
- Added .html to Woocommerce permalink but pagination don’t work!
- Pagination links for taxonomy archive page 404 error on every page except first
- WordPress Pagination Not Working After Transfer from Localhost
- Add Custom Pagination Permalink
- Search page Paginations not working
- Pagination is not working, how to trace it properly?
- How to change pagination base from slash to query form?
- Category pagination first link works, remaining don’t
- Why doesn’t my page know it’s a page (won’t return true for is_page())?
- Getting the terms from “Beautiful Taxonomy Filters” Results ot Integrate into “Ajax Load More”
- Post archive pages bringing me to a 404 page
- Pagination on a WP_query not showing navigation links
- permalink independent on the post’s name stored in the database
- How to change author base without front
- WordPress search: pretty URLs (permalinks), custom post types and pagination
- Add custom directory in URL
- Paginated pages are showing correct content but pagination links are not
- Arabic permalink not found
- Changing URL from /%postname%/%post_id to /%category%/%postname%/%post_id%
- How to change the permalink structure of a master page?
- Does WordPress send a 301 header message when you change permalink structures?
- Multilanguage URLs
- Trying to get property of non-object when using get_post_permalink()
- Attachment Page Permalink/URL Rewrite Issue. How to change the actual rewriting?
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- How to link to current post in WordPress?
- 301 Redirects Result in 404 for WordPress Search Query Strings
- After updating to 4.8 permalinks will not work (all 404)
- Previous/Next Link by Meta Value in CPT
- Using ajax with paging and a custom sub-query
- Editing URL character replacement
- WordPress archive permalink with leaf category
- How do you paginate a query grouped by month?
- Pretty urls for custom pagination
- All top-level pages are using index.php as template
- Redirect all posts permalinks from “.html” to “/”
- Nginx url rewrite rule problem
- Custom loops, sticky posts, and pagination nightmare
- How to rename ‘Tag Base’ with WPeC 3.8?
- Custom rewrite rule ignored
- Make last three words of excerpt a link
- Resolve 404 on posts without category
- How to remove .html from admin
- Retrieve default permalink while using seo friendly URLs in WordPress
- Custom Query Not Paginating
- When I click on a single post my browser goes to about:blank#blocked and the page is white
- WordPress Permalinks problem
- Content not displaying on paginated page
- Access or edit custom generated permalinks with WP_Rewrite
- xammp server permalink by postname not working
- Redirect after permalink changes
- Change type of permalinks on TinyMCE link dialogue
- Permalinks and page store
- Change pemalink for one single post without redirect
- Add .html permalink to post if specific category
- Strip subcategory base from URL
- rewrite based slug standar post wp
- How to update wordpress permalink structure with author role?
- Pagination Not Working When Used With WP_Query() `offset` Property
- Home page is not loading, where in other pages are displaying on the site
- Edit Post Permalink option removed, looking for possible causes
- Site Tagline ended up in permalink
- Getting 400 Bad request Error when trying to open posts after updating to wordpress 5.0
- Category Base permalinks
- Pretty Filter URL
- Add URL to selected post in meta box
- Prevent guessing slug
- Pretty permalinks to work for lighttpd webserver?
- Customize category permalinks
- permalinks url with woocommerce
- WordPress 6.1.1 UTF8 Slug Limit Increase
- 301 Redirect posts to newly added categories
- How to have category/subcategory/posttitle/ permalinks?
- Permalink settings are stuck on https, will not update to http