• Resolved chrisrixxo

    (@chrisrixxo)


    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

    (@chrisrixxo)

    I’ve hard-coded our prefix for now and it’s working fine. Hopefully it will come out in an update

    Hi @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.

    Hi @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.