Get next available post id

<?php
global $wpdb;
$last_id = $wpdb->get_col("SELECT ID FROM wp_posts ORDER BY ID DESC LIMIT 0 , 1" );
print_r($last_id);
?>

0 Comments

You must be logged in to post a comment.