Title: wpdb Insert custom post type
Last modified: August 30, 2016

---

# wpdb Insert custom post type

 *  [elsnare](https://wordpress.org/support/users/elsnare/)
 * (@elsnare)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/wpdb-insert-custom-post-type/)
 * So I have a very simple setup:
 * A HTML form
    A query_posts loop
 * The form is used to insert a custom post type to the database. It works fine,
   the fields are populated, the post is visible in back-end.
 * **The problem:**
    Even though the post is visible in backend it is not visible
   in the query unless another post is submitted (then the newly submitted is not
   visible and so on…).
 * Am I missing a parameter somewhere?

The topic ‘wpdb Insert custom post type’ is closed to new replies.

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [frontend posting](https://wordpress.org/support/topic-tag/frontend-posting/)
 * [query](https://wordpress.org/support/topic-tag/query/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [elsnare](https://wordpress.org/support/users/elsnare/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/wpdb-insert-custom-post-type/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
