How do you find the ID of a WordPress page, post, or user?

Open the item from the WordPress list and inspect the address in the browser. In the classic administration URLs, the number after a parameter such as post= is the page or post ID. You can often see the same destination by hovering over the Edit link in the list.
For a user, open the profile from Users and look for the user_id value in the URL. Categories, tags, menus, and other terms have their own IDs, often shown as tag_ID in administration links. Plugins may display IDs directly in list columns or provide a search interface for their custom records.
The ID is an internal database identifier and remains the same when a title or slug changes on that installation. It can be used in shortcodes, queries, API requests, template conditions, and plugin settings. Treat a user ID as an identifier, not as proof of permission or identity.
IDs can change when content is imported, duplicated, or migrated to another site. Do not assume that production and staging use the same numbers unless the environments were copied and kept in sync. Record the site and content type alongside an ID used in code or documentation.