Show IDs

Display ID numbers directly in your WordPress admin list tables. See IDs for posts, pages, custom post types, categories, tags, users, and media — no more hunting through URLs or inspecting source code.

Use Cases

  • Quickly find post IDs for shortcodes like [gallery ids="1,2,3"]
  • Reference user IDs for custom development or API integrations
  • Grab category or tag IDs for theme customization
  • Copy media attachment IDs for custom queries

How It Works

  1. Enable the module in Switchboard
  2. An “ID” column appears in all list tables
  3. IDs display in monospace font for easy reading
  4. The column appears after the checkbox column for quick reference

Where to Find It

Locations: The ID column appears in:

  • Posts → All Posts
  • Pages → All Pages
  • Media → Library (list view)
  • Users → All Users
  • Posts → Categories
  • Posts → Tags
  • Custom Post Type lists
  • Custom Taxonomy lists

What Gets an ID Column

Admin ScreenID Type
Posts listPost ID
Pages listPage ID
Media libraryAttachment ID
Users listUser ID
CategoriesTerm ID
TagsTerm ID
Custom post typesPost ID
Custom taxonomiesTerm ID

Using IDs in WordPress

Once you have an ID, here’s where you can use it:

In Shortcodes

Many shortcodes accept IDs:

[gallery ids="5,12,18,24"]
[embed]https://youtube.com/watch?v=xxx[/embed]

In Theme Functions

// Get a specific post
$post = get_post(42);

// Get a specific user
$user = get_user_by('id', 15);

// Get a specific term
$category = get_term(8, 'category');

In WP_Query

$query = new WP_Query([
    'post__in' => [10, 15, 22],
    'orderby' => 'post__in'
]);

In REST API

GET /wp-json/wp/v2/posts/42
GET /wp-json/wp/v2/users/15
GET /wp-json/wp/v2/categories/8

Column Styling

The ID column is designed to be:

  • Narrow (60px) — Doesn’t take up much space
  • Monospace font — Easy to read numbers
  • Bold — Stands out for quick scanning
  • First position — Appears right after the checkbox

No Configuration Needed

This module has no settings. Enable it and the ID columns appear automatically everywhere they’re useful. Disable it and they disappear.

FAQ

Can I copy the ID directly from the column?Yes! Simply select the ID number and copy it. The monospace font makes it easy to select just the number.
Does this work with custom post types?Yes, ID columns are automatically added to all public custom post types registered on your site.
Can I hide the ID column if I don’t need it sometimes?You can use WordPress’s built-in Screen Options (top-right of list pages) to hide/show columns, though the ID column from this module may not appear there. To remove it completely, disable the module.
Why are some IDs non-sequential?WordPress assigns IDs to many things (posts, revisions, attachments, menu items). IDs are never reused, so gaps appear when items are deleted or when other content types fill the sequence.
Is there a way to find an item if I only have the ID?Yes! Go to the list view (Posts, Pages, etc.) and use the search box. WordPress searches IDs as well as titles, so searching for “42” would find post #42.

Bookmark posts by ID in your browser. Unlike slugs that might change, the post ID never changes: yoursite.com/?p=42 always points to the same post.

This module is purely visual — it just displays existing IDs. No data is created or modified, so it’s completely safe to enable/disable at any time.

PRO

Get access to all 147 modules with a single license

Upgrade to Pro