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
- Remove slug from custom post type post URLs
- How to get post content by calling ajax?
- Get category id from post id of a custom post type
- WP insert post and custom taxonomy
- Limit widget to a specific registered sidebar
- Restrict a Post Types Post Status
- WP_List_Table Inside Metabox Not Working on Submit
- Why get_next_post_link() or get_previous_post_link() doesn’t return the required links?
- Add metabox with media uploader in a custom post type [duplicate]
- Showing current taxonomy terms
- Newer/Older posts links display same posts on every page
- automatically create taxonomy with same name as post title
- Trying to save custom post type from frontend partially working
- custom sortable column
- Wp-query causing problems with the_content();
- saving custom post type data to different table in wordpress
- Display “Post 2 of 4” on single post page?
- Query post types with multiple keys
- Assign category to front end post
- How to embed form data within the ‘Add new post’
- When viewing single parent post, display list of children
- Limit Authors to their Own Posts on front-end excluding admins
- Remove Post Page “View Post” Link
- Get all posts WHERE custom_field is LIKE value
- How to make post sticky in the admin page?
- Loop on front-page.php
- Using The REST API How To Pull All Custom Posts?
- List children on child post
- Restrict custom post type from appearing with ?post_types=
- How do I do this with WordPress? Taxonomies?
- Display Ad on Specific Categories
- Show titles, date of all posts on single category page
- Set up post page like JAMA articles
- Shortcode not working with post counter
- Changing default ‘posts’ parameters with register_post_type_args
- Allow users to create posts without logging in?
- Create new custom post and post category of same name
- Load Next WordPress Posts With AJAX?
- If there is only one post (show elements) else (show other elements)
- Custom post type menu
- Modify Posts from Custom_Post_Type within the plugin
- How do I edit the WordPress post.php file?
- Posts are not rendering perfectly [closed]
- How I can made a custom post type to page templates?
- List all posts in taxonomy term
- insert image with custom post type
- how to redirect to a custom post template
- Post/Custom Post Type URL Access
- Adding /blog in front of single posts (only)
- See if the email exists or not
- list articles in admin showing nested categories or slugs?
- Search CPT by tag ids
- Post template with breadcrumb needs to show page navigated from
- Define multiple prefixes for custom post type
- Publishing failed. The response is not a valid JSON response
- add all blog posts to folder
- wp_insert_post deleting previous post custom meta
- Show posts from WP Custom Post Type selected from a field in a metabox
- How to hide private posts even if user is admin
- order custom post type posts by custom date
- How to show posts of the same category on a page?
- custom post type to post association in wordpress
- Need to display author’s email id in the “Edit post” field in wp dashboard. How do I do this?
- How to stop post status from reverting to Published?
- How to get all posts related to a taxonomy?
- call a function when insert and update a custom post type
- Work and Display a Custom Post Type as a normal Post
- Most efficient way of showing children posts?
- Custom post type with two templates
- One Post with different content, depending on a Page
- Custom Post Type
- Popup panel is only displaying 1 entry ignoring all others
- How to display data with pagaination on backend?
- How to Arrange Support => Thumbnail
- How to change post status link order(priority) on cpt listing page
- Front-end form submission not creating post
- Post being scheduled that shouldnt be schedulded
- Get custom post type parent category
- After wp_insert_post() custom post type does not show in the admin
- How to delete unnecessary custom post types in the UI
- show the most recent date of all posts to display on front end
- Error 403 when posting comments to a custom post type from a different page
- How to change post cpt with submit button?
- Storing every individual update to the posts being updated over time?
- Change post structure
- Post URL redirecting to homepage
- How to automatically update ACF field value every year?