Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Custom Post Type not showing anything added by code anymore?

It wasn’t working because at public status draft/publish were written without a capitol so it has to be 'post_status' => 'Draft' or 'post_status' => 'Publish'

Related Posts:

  1. Why WordPress choose data serialization over json_encode?
  2. Issue with wp_insert_post and post_content field error Could not update post in the database
  3. Dealing with Many Meta Values, 30+
  4. What is the most secure way to store post meta data in WP?
  5. How to delete outdated, wrongly sized images in _wp_attachment_metadata?
  6. Meta query interfering with orderby relevance
  7. Migrating non-WordPress CMS to WordPress, lots of data to move — possible solutions?
  8. How to solve slow WordPress site caused by attachment_metadata
  9. Can’t update database after wordpress update from 3.8.1 to 4.4.1
  10. Delete all post meta except featured image
  11. Add search Value to wp_list_table pagination
  12. Using table lock with wp_insert_post?
  13. Why are no posts showing despite my apparently correct DB restoration?
  14. Is it possible to store visitors IPs in wp_postmeta table?
  15. Multiple postmeta with same name for one post in wp_postmeta table
  16. Delete all post meta except featured image Using SQL
  17. One post carries 30 postmeta values, is this too much?
  18. delete post meta from db, even if does not exist?
  19. WordPress and MySQL: how to transfer Meta_key and Meta_Value from one post_id to another
  20. Storing data for a wordpress plugin
  21. Where does the actual data stored by add_post_meta
  22. Structure of postmeta meta_value for woocommerce product download
  23. Insert post in another database
  24. Routine to convert custom post meta from old to new value
  25. Retrieve data from the database to table such as comments in the admin control panel
  26. Saving zero as meta value
  27. Uknown meta entries in wp_postmeta
  28. How to combine multiple wp_insert_post into one in order to gain better performance
  29. Does post_meta data need to be unserialzed?
  30. Adding prefix to WordPress database tables breaks admin capabilities?
  31. Is my way to change WordPress server is correct?
  32. Link image with data from the wpdb
  33. Compare User meta_value with Product meta_value
  34. How to save EXIF metadata in WordPress database?
  35. _wp_attachment_metadata is not being added to database when PDF files uploaded
  36. “BS_” rows in postmeta table
  37. Migrating meta_key and meta_value from old theme to new one
  38. WordPress site migration – locked out of admin area
  39. WordPress Migration – Issue with admin panel changes
  40. Database structure for thousands of posts
  41. WordPress URL error for links
  42. How much post meta data is too much?
  43. Call to a member function insert()
  44. How do i get value from wp_postmeta?
  45. add_post_meta displays in admin edit area
  46. Recommended Post Structure for DB Storage
  47. SQL query : Select a thumbnail for a media
  48. Recover Same WordPress Admin Password
  49. cannot access wp-admin after options table crash and repair
  50. Database Queries are crashing the server
  51. How to protect my credentials on my clients website
  52. large number (bigint) for post ID issue in database
  53. What are the differences between B trees and B+ trees?
  54. Strange Characters in database text: Ã, Ã, ¢, â‚ €,
  55. Storing Images in DB – Yea or Nay?
  56. Attaching taxonomy data to post with wp_insert_post
  57. Connect to database using wordpress wp-config file
  58. wp_users user_status field
  59. Display data from a non wordpress database on a page template
  60. Is it possible to switch the data layer within WordPress?
  61. Changing the Database Connection Error Message
  62. Should I hint table index for search query on wp_post
  63. Corrupt WordPress Database
  64. Have multiple local wordpress installs share a wp-content folder and database
  65. Connecting to external oracle database
  66. Bulk Update of Custom Post Type Post Status through SQL
  67. How do I add indexes to WordPress Database?
  68. Faulty restore of the database, encoding issue
  69. Huge wp_options table
  70. Can’t save ajax value to database
  71. Updating all rows of table with $wpdb
  72. What actions affect files, DB, or both?
  73. Block search SQL from happening
  74. Is $wpdb->prepare escaping to much? How to use it properly?
  75. wp_options table has duplicate rows and primary key / autoincrement has been removed
  76. What is the purpose of storing `siteurl` in database?
  77. How to log database changes during an upgrade?
  78. Using same database for main and subdomain
  79. Emojis getting converted to “?”
  80. Building a Scalable Resiliant WP Setup
  81. Single database for multiple instances
  82. Search and replace special characters (å,ä,ö) for image attachments only in database
  83. Accidentally deleted active_plugins portion of the wp_options DB table
  84. Automate dir and DB stack creation with WP-CLI
  85. Moving WP from local server to live, error establishing a db connection
  86. Is there a way to see history of WordPress database changes?
  87. Exporting table to csv works in the admin but exports HTML data when used on the front end
  88. wp search-replace (not executing)
  89. How to have an external DB read and get data from my wordpress database
  90. Import users from old WP site to new one
  91. Create table from array with prepare
  92. Migrate database between 2 different wordpress version
  93. wp_usermeta key problem
  94. How to properly configure SSL connection to remote azure database for running queries within a WordPress environment
  95. Uploading to WordPress Database
  96. Database Errors since site updated to WordPress 6.4.3
  97. $wpdb->update is not working until next page refresh. Is there one more step?
  98. Merging multiple WP databases into one for a multilanguage site prevents access to language-specific WP administration
  99. How to change all the images in post content to full/orginal size – Thumbnails are broken
  100. Can I Load posts from an External database if the post is not found on Main WordPress Database
Categories Database Tags database, post-meta, wp-admin, wp-insert-post
Using WP meta query to show custom post types by a start and finish date
VServer/Rootserver/Shared Hosting: Multiple WordPress installations each having their unique domain?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress