Get current post data into array? July 15, 2022 by Tarik Billa You can simply call get_post(), it returns the current post if no ID is specified. get_the_ID() actually does the same.