Ugggggggh.
"post_status" => "published",
is incorrect. It should be
"post_status" => "publish",
This apparently puts posts into a state of limbo in which they’re not visible in the list (but still counted for some reason).
Related Posts:
- How do I check if a posts status is set to draft or pending?
- How Can I Set the Post Author of a Post I Just Created With PHP?
- create parent post using wp_insert_post
- Update postmeta Parent when post_status child change
- How to define which register_post_status goes to which register_post_type?
- wp_insert_post wrong post type [closed]
- Published post auto change status to pending after 90 days
- How to handle new post from API request?
- Show custom post status when logged out
- edit.php all post not working
- How to insert post 6 times after user register like ask.fm
- wp_insert_post() creates duplicates with ‘post_status’ => ‘publish’
- Custom Post Status & Taxonomies
- New post status for custom post type
- Submit post and upload image from front-end
- Linking Two Post Types
- Correct Post Count ( All | Published | Drafts | Pending | Trash ) for Custom Post Type when restricting to view own posts
- Pull Two Posts Into Custom Post Type `single-cpt.php`
- Problem excluding category from get_next_post
- Why is the »_builtin« parameter not advised in »register_post_type()« for custom post types?
- How to let custom post type posts show in standard post archive (like in homepage)?
- Rewrite custom post & taxonomy to share same URL path
- How can I fix a slow redirect after form submit from frontend (no plugin)?
- delete custom post based on custom field date
- How to set default status to custom post type
- Get the post children count of a post
- Quickest way to get last or oldest post date – WP Query
- How to use custom fields to enable sticky posts on custom post types?
- get_template_part for custom post type content not working
- Show Two custom Post type and their posts on category page
- count_many_users_posts except current logged in user?
- Custom post type and body_class: Remove “blog” class
- Shortcode for display posts on home page show only one post
- How to Separate CPT From Regular Posts?
- Remove rows in the manage post/page view
- Display only one post each WEEK
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Cron job for creating posts not excecuting properly
- Set a checkmark in a category based on a URL-parameter
- Portfolio Page for Classic Posts
- Limit the post for differents custom post type in the same wp_query
- How can i create an custom post template for an specific post category? [closed]
- Why cant I add a custom post type to a custom taxonomy?
- WP the_posts() on single-cars.php get category link
- Conditional for a Single Post That Belongs to a Category?
- how to check if custom post title exists or not?
- Modify previous and next post links to current Authors Other posts
- Display an authors post on a single page only when they are logged in
- Is it possible to add posts and images (auto resize) for custom post types with a script?
- Get_the_terms restrict output
- Generate new post from email
- YOAST SEO won’t work on custom post type archive [closed]
- Batch Extract Date from post title and put into ACF custom field
- How to handle this specific case of custom post type?
- How to add new post using a form to categories when categories are using as menu
- Custom wordpress loop
- Different post title, keywords and description
- how to get options to choose post format in add new post
- Copy/Move selected taxonomy terms to another taxonomy for posts
- Use post in multiple places on a page with multiple posts
- Making a form for user to add new custom post with custom taxonomies and custom fields
- Custom post type filter is being applied to all of my posts
- Admin slow on Postlist (over 30k Posts in Database)
- Get_post_custom not fetching value from array wordpress
- Set Post Private if no linked Post Objects (ACF)
- Display Parent-Child Posts in specific order by comparing IDs in array
- Post category behave like a Post in back office menu
- Save data is post using php front end
- What is the best way to structure posts for the same event happening in different years?
- How to display custom field in product description?
- How to display posts with plugin (advanced custom fields) field groups?
- WordPress – display relationship between blog posts and custom posts
- Custom page with no headers, footers and its own CSS, Javascript
- SEARCH QUERIES – REVERSE OUTPUT
- Is there a way to create a sidebar of bullets
- Get queried object for custom post type count
- I cannot display custom posts in custom taxonomy
- post type => ‘any’ not applied my custom queries
- How can I get the last 5 element of this tax query?
- How to save post_status using action save_post?
- How to get the posts that my following users are liked?
- How can i order my posts by post type?
- Creating custom post type relationships
- Post that populates itself (almost) automatically using data from imported excel file
- How to mark posts as visited
- Implement post status update as frontend news announcement
- How To Loop Through list with Custom Post Types
- Adding Information To All Posts Screen
- Different post types arranged on one page
- Generate slug and meta data if meta field is empty
- erase post excerpt limitation [×]
- wordpress form processing to custom post type not working
- Display all post types together
- custom field suit new post with in custom fields
- Pulling in a particular post into a single page based on the post id passed into the code
- Custom My account page and custom page for editing posts
- Get post from custom post type that title is like custom string [closed]
- show posts under custom post type with same autj
- How to automate the creation of advanced layout article/post
- Sort ACF by custom taxonomy