Get post ID from the Create post/page admin interface? April 13, 2022 by Tarik Billa Try get_the_ID() or global $post; $post->ID.