WordPress hides post IDs in admin lists despite embedding them in page HTML
WordPress has never displayed post IDs as a visible column in its admin list screens, even though every row already contains the ID embedded in HTML attributes and edit link URLs. The only built-in method to find an ID is hovering over an edit link and reading the URL from the browser's status bar. This becomes a practical problem when editors need multiple IDs at once, such as for WP_Query arguments or shortcodes, requiring tedious one-by-one lookups with no margin for error. IDs in WordPress can appear non-sequential because all content types — posts, pages, attachments, revisions, and menu items — share a single auto-incrementing counter in the wp_posts table. Developers can expose the ID as a visible column either through a code snippet in functions.php or by enabling the Custom Admin Columns feature in a plugin such as WP Adminify.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in