How to get the post ID in WordPress

When you start running a WordPress, you’ll encounter a number of plugins asking you for your post IDs. If you’re a first time user, this may stomp you. After all, you can instantly check the name of your post, you can easily find the URL – but how can you find the ID of your post?

Well, if you’ve encountered this problem, you’re in luck. We’re here to show you exactly where to find post IDs in WordPress.

You might be thinking: you haven’t still encountered a plugin asking you for your post ID, so why do you even need to know it? In addition to plugins, many themes will also request post IDs during the configuration process.

With that in mind, let’s see how you can find a post ID…

How to Find Your Post IDs in WordPress

In short, the fastest way – and definitely the easiest – to find your post IDs is done through your WordPress dashboard. Log into your Dashboard, find the Posts tab and click on All Posts. There, just take your arrow and drag it across the post you want to find the ID for.

Keep the arrow pointed and in the bottom left corner, you’ll see a small pop box. And that’s where you’ll find your post’s ID. Specifically, the ID is actually the number that comes before the “&” and after the “post=” in the small box.

You can clearly see the small gray box in the picture we posted above. In our case, the post ID is “1” since we’re using an empty site, only meant for demonstration. And you’re all done. Of course, this isn’t the only way to find out your post ID.

You can also find it in your editor by clicking on the actual post. This is actually a simpler way of finding out the post ID. If you opt for this, the post ID can be found in your address bar. You’ll actually see the exact same URL as you did before.

And once again, the ID can be found between the “&” and the “post=.”

Both approaches are not time-consuming at all, and in most cases, it doesn’t take more than a few seconds to find the ID you’re looking for, depending on how much you’re familiar with the layout of your WordPress Dashboard.

How to Find Tag, Page, and User IDs in WordPress

Just like posts on your site, tags, comments, and pages, all have their own unique IDs. And if you want to find out any of them, you just need to repeat the same process. For instance, if you want to find a category ID, you should just go to Posts, click on Categories.

Once you’re in there, just hover the mouse arrow over the category you’re looking for, and you’ll see the URL box in the bottom left corner. However, in this case, the ID can be found between the “&” and the “category&tag_ID=.”

The Bottom Line

With this information, you’ll never struggle to configure a theme or use a new plugin ever again. With this short guide, you’ll be able to find any post ID in a matter of seconds.

And no matter how simple it is, finding post IDs is sometimes confusing for first-time users, mostly because these IDs are so rarely needed.

We hope this guide helped you find the post ID you were looking for. Remember these short steps, and when you’re finally asked for a post ID, you won’t waste any time looking for it.