One way to grab it is to visit the edit page of a post and check out the URL. It should look something like this: https://yourwebsite.com/wp-admin/post.php?post=137171&action=edit The 137171 in the example above is the ID of the post – the main identifier in the database. Surely there must be an easier way to figure it out right? Fortunately, there is. The easiest solution is to use a plugin. Second option: DIY - Display Post IDs with Code
Read the rest of the article for more details.
Have fun.








