As mmm pointed out in the comments, order
should not be used as a name for a custom post type, as it may “interfere with other WordPress functions”. Read more in the Codex:
Reserved Post Types The following post types are reserved and used by WordPress already.
post
page
attachment
revision
nav_menu_item
custom_css
customize_changeset
In addition, the following post types should not be used as they
interfere with other WordPress functions.
action
author
order
theme
Related Posts:
- How to check if I’m on a custom post type archive in the admin area
- WP-Admin edit.php & post.php slowdown after import of 10k users
- Custom WP_Query doesn’t display all posts
- After inserting new post with wp_insert_post() the post is not visble to WP_Query, but the same WP_Query works for post inserted from wp-admin panel
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- Sort custom post column by generated value?
- Row actions for custom post types?
- Meta query with boolean true/false value
- Add content in custom post type page after the title and before columns
- Search multiple custom fields by using meta_query
- Filtering Posts by Multiple Taxonomy Terms such as in an Admin Post Listing?
- category__in not working on custom post type
- Displaying Posts Related to Other Posts by a Taxonomy Term?
- Date query for a custom meta field
- Querying Posts by Taxonomy From Alternate Network Site
- How to query for posts (in hierarchical custom post type) that have children?
- Set default option in dropdown of WP_Query?
- Combine tax_query and meta_query in WP_Query
- WP_Query pagination using only numbers instead of /page/1 on URL
- Query for posts in 2 taxonomies
- How do I add a custom button to my “edit” list? ( edit.php?post_type= ) beside “Add New”
- Remove “Get Shortlink” button in admin of custom post type
- How do I create an archive page for standard posts?
- Multiple post type queries (with specific arguments for each)
- Custom WP_Query not returning results when querying custom post type
- Get all of user’s custom post types in WP Admin for plugin
- Custom Post Type Loop within Shortcode
- Combining sorted and random CPT
- How to add post_type=value when editing that post type in the WordPress admin?
- Display CPT posts based on specific taxonomy
- How to avoid manage posts screen duplicates when two plugins use the same library
- Get latest 3 posts from multiple CPT in one query
- Custom Post List View: Page or something else?
- Display upcoming Events for next 7 Days
- Orderby CPT custom fields not working
- Troubles with acf/save_post and WP_Query
- Query custom post type with ACF Date
- Custom WP Query on custom meta and sort by multiple meta keys value
- Woocommerce search pagination not working
- How to order WP_Query by parent for hierarchical Custom Post Type?
- WP Query with categories only shows one post and ignores the category
- WordPress request fiter order by related post’s post_title
- Order Custom Post Type by Custom Field Value
- WP_Query custom post type query not showing the exact post type
- Change sort order when using ‘orderby’ => ‘type’
- Add Custom Post Type of specific Custom Taxonomy to regularly blog loop
- WordPress wp_query() basic question about args
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- How to get specific post meta by title or id
- Hide Status Option From WordPress Publish Metabox and Rename Published on:
- How to properly rewrite pagination rules for a CPT to avoid 404 error on /page/2
- $post->post_meta not pulling any post in wordpress/php
- WP_Query of custom post type sorted by meta_key has unexpected results
- How to get the post terms from a child taxonomy
- display posts of custom post type with custom taxonomy
- How to query for posts (hierarchical custom post type) that have children but are NOT top level?
- Create a WP_Query where if the first value of the first row is equal to the second compare other value
- WP_Query get post from a category and from another post type
- Custom Plugin – Query CPT – Display Results
- foreach loop inside the loop creating duplicates in output
- Sorting by meta_key different to search criteria?
- Shortcode / WP_Query in post changes context
- How to fetch posts that are stored in the different table than (default) wp_posts?
- WP_Query order custom post type with certain meta key value by post modified date
- Cant’ Display Custom Post Type Title Base on Tax Terms
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- Display custom-post type based on the Title matching the current selected value
- Custom Post Type ‘Event’: Chronological list of recurring events from meta_values in array
- Pagination in custom post type archive.php not working
- How can I put content before my custom post type default pages?
- WP Query: If field X is empty, show posts based on field Y
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- meta query condition don’t work
- How to search through all child taxonomies using WP_Query?
- Numeric pagination custom post type
- Custom post type category returns null
- Tell wordpress to show a single page instead of an archive page
- How to get post by meta value
- Filter custom WP_Query by first letter of a custom field – hopefully using Search and Filter Pro?
- WP Query filter search. Result show all posts instead just custom post type
- sorting in wp query based on custom field value
- How to override post-new.php with custom template
- Display posts of a hierarchical custom post type excluding parent posts
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- Only show current category post
- get_post_meta for Custom Post Type ( CPT )
- Custom Post Type shows pagination (w/404) or posts_per_page query, but not both
- How to query posts by meta keys AND under specific category?
- Shortcode display CPT Query only showing 1 post?
- Query stopped working
- How can I base a query off of the current page post type AND a meta value from another custom post type
- Filtering in admin broken for custom post type in 3.8.1?
- WP_Query and two custom fields returns no posts
- Query Posts From Multiple Post Types
- Fallback if statement based on the number filtered from it
- Get images only from a certain post type
- querying to custom field over ACF REST API
- Quering array of post types & pagination. Articles are repeating sometimes on different pages
- How can I show posts with the same tag?
- WP Query – Can’t get posts with specific taxonomy