Solved, it was an issue with assigned parent- and subcategories.
Because I’m using the ‘WP All Import’ plugin connected to Google Drive, posts are automatically imported. Since some of the posts don’t have categories assign in the Google Drive document, ‘WP All import’ doesn’t assign a category on importing the data.
For some reason this has resulted in duplicate content, importing already existing posts but without a category. Because the latest imported posts are without category and ordered descending by date on the search page, I was under the impression that there was something wrong with the permastructure.
Related Posts:
- Show index and not the archive for “Dog Custom Post” with default slug
- I have a custom taxonomy assigned to two post types. How do I create URLs for different term archives for each post type?
- CPT url rewriting : regular posts return 404 error
- Custom Post Type rewrite url to /category/pagetitle [duplicate]
- WordPress custom post type rewrite rule matches all pages returning 404
- Conditional posts in WP_query for search
- Remove custom post type slug but keep related category taxonomy permalink
- page not found for example.com/custom-post-name
- Post search not looking at post title since 4.4.2 upgrade
- Rewrite Endpoint Url without ? before endpoint
- Custom Post Search
- Force WordPress to only match URL in category
- Manually build WP_Query
- Paging not working for hierarchical custom post type
- How Can a CPT in WordPress have a page 2 without an error?
- WP_Query with custom post type search showing all results every time
- Custom post type with parent page? Possible?
- Extensive search filtering and results->PDF in the front-end
- redirect old post type url to new structure url
- Search form to find custom meta box generated data
- Trying to modify custom search function in plugin to search postmeta table for keyword as well as posts table
- current_menu_parent for custom post type and custom url
- Custom Post Type URL Rewriting
- Remove sequential number from permalinks
- Custom WordPress URL
- 404 error Custom search results page for custom post types with friendly URL
- One custom post type with two different url structure base on taxonomy term
- Archive page for a custom post type using WPML
- pre_get_posts not firing at all
- Why is a custom post type’s URL “/?cposts=name-of-the-post” but default post’s URL is “/?p=ID”?
- multiple custom post type category selection search
- Custom Search Template for Custom Post Types
- Why won’t this rewrite rule work?
- Customizing the custom post type permalink
- Custom Search not working
- Search page for custom post type
- URL Rewrite Adjustment for Custom Post Type causes template to revert to index.php
- Parent cpt/child custom post type URL permalink relationship
- Custom post type blog pagination conflict
- Cannot modify a registered custom post type rewrite slug
- Is it good practice to search for custom posts based on custom field values?
- Diffrent search templates for different post types
- Customize category URL
- Custom Post Type Rewrite Rule
- Rewrite Rule & Regex – Extract ‘cat-name’ and ‘page-number’ from http://domain.com/custom-post-type/category/cat-name/page/page-number
- Cannot get query var ‘post_type’ to work
- 2nd and 3rd Custom Post Type URL’s 404ing
- rewrite rules add a folder in the path
- Multiple search template with separate stylesheets
- Custom Post Type – Rewrite slug [duplicate]
- Advanced search form with filters for custom taxonomies and custom fields
- Custom post type and custom taxonomy archive inaccessible
- Generate daily archive whenever any post type is added
- Problem with custom post type search
- How can you preserve URLs when moving posts to a custom post type?
- Generating custom URL before post is published
- Custom Post Type Base URL
- Custom Taxonomy in Permalink from post type
- Archive custom template from search
- Rewrite rules for using the same base slug for multiple content types
- Searching for a single custom post type, buddypress
- Custom Post Type and single-posttype template
- admin search of pages returns custom post types
- Customising wordpress search and using $_GET[“s”]
- How do I do this?: If custom post type exists, echo it, else do not
- WordPress search results
- Custom post type permalink structure
- search this custom post type
- Why does ‘exclude_from_search’ exclude a custom post type from WP_Query?
- How can i change url structure of cpt like this?
- Drop Down Filter with CPT as Options for Search Form
- Searching Custom Posts content with JQuery
- Custom Field Search
- How to change custom post type slug without damage seo? [closed]
- add_rewrite_rule not working in Custom Post Type UI Plugin
- WordPress search results grouped by post type
- Custom post archive with search, is_search() is false?
- Why custom search engine only searches in post titles of custom posts?
- Custom Post & Taxonomy rewrite break regular post & page
- Looking for advice how to approach building a WordPress plug-in
- Rewrite Rule for custom post type link with or without taxonomy terms
- Menu Structure and URL structure, with Pages and Post-Type-Posts
- How do I provide a search form for a specific post type, that is capable of searching within custom fields of the specified CPT?
- Custom Post Type with multiple Custom Taxonomies / Hide Taxonomy Slug from URL
- Rewrite nested urls for custom post type
- Custom archive URL as a subfolder of the custom post type slug
- Custom post type Premalinks main page and details page
- How to rewrite custom slugs that follow my rules
- Custom post type with custom taxonomies structure url not working archive of CPT
- What is the best way to relate different custom post types?
- Custom slugs with dates & IDs on Custom Post Type
- Rewrite rule taxonomy url with different values in one function
- Group search results by post type, but having a unique heading for each section?
- Allow child pages with the same base as the CPT slug
- Meta_query question
- Add post id to url instead of WordPress default -2 suffix
- Custom URLs between different post types, using “Pods”
- How to exclude html tags and class on search
- How to work with URLs where sometimes a post or a subcategory is in the same part of the URL structure
- How to make 2 (or more) custom post type post pages sit under the same slug?