Title: wp_posts does not exist &#8211; save.php
Last modified: October 19, 2022

---

# wp_posts does not exist – save.php

 *  Resolved [chrisrixxo](https://wordpress.org/support/users/chrisrixxo/)
 * (@chrisrixxo)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/wp_posts-does-not-exist-save-php/)
 * I was getting errors after saving a new template in the WP admin so used WP Query
   to find that in save.php the table was not taking into account a custom prefix
 * $wpdb->update(‘wp_posts’,
    [ ‘post_name’ => wp_unique_post_slug( $slug, $post-
   >ID, ‘publish’, $post->post_type, $post->post_parent ), ], [ ‘ID’ => $post->ID]);};
 * In our instance wp_posts is customprefix_posts

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [chrisrixxo](https://wordpress.org/support/users/chrisrixxo/)
 * (@chrisrixxo)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/wp_posts-does-not-exist-save-php/#post-16129366)
 * I’ve hard-coded our prefix for now and it’s working fine. Hopefully it will come
   out in an update
 *  [Ben @ Team Tangible](https://wordpress.org/support/users/bentangible/)
 * (@bentangible)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/wp_posts-does-not-exist-save-php/#post-16129461)
 * Hi [@chrisrixxo](https://wordpress.org/support/users/chrisrixxo/), I’m just chiming
   in here to let you know that I’ve passed the information along to a developer.
   I’ll follow up here with updates.
 *  [Ben @ Team Tangible](https://wordpress.org/support/users/bentangible/)
 * (@bentangible)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/wp_posts-does-not-exist-save-php/#post-16518460)
 * Hi [@chrisrixxo](https://wordpress.org/support/users/chrisrixxo/), I just realized
   that I forgot to follow up here with an update, but I’m noticing that version
   3.1.1 of the plugin that was released on December 30 included this in the changelog:“
   Template post types: Support any database table prefix including `wp_`” so I 
   believe this should now be resolved. Not sure if this thread was marked as resolved
   previously as a result of this release, but I figured I’d follow up here in case
   you missed the release. Let me know if you notice any other issues 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp_posts does not exist – save.php’ is closed to new replies.

 * ![](https://ps.w.org/tangible-loops-and-logic/assets/icon.svg?rev=2535522)
 * [Loops & Logic](https://wordpress.org/plugins/tangible-loops-and-logic/)
 * [Support Threads](https://wordpress.org/support/plugin/tangible-loops-and-logic/)
 * [Active Topics](https://wordpress.org/support/plugin/tangible-loops-and-logic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tangible-loops-and-logic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tangible-loops-and-logic/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ben @ Team Tangible](https://wordpress.org/support/users/bentangible/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/wp_posts-does-not-exist-save-php/#post-16518460)
 * Status: resolved