Finding the ID of a post or page is really easy once you know where to look.

FREE WordPress themes:

Who is Ben?

In 2010, I made my first WordPress website.

In 2014, I started a WordPress theme business called Compete Themes. I’ve since designed and developed 19 WordPress themes that have been downloaded more than 1.5+ million times. As a WordPress user, developer, and business owner, I can tell you that I know this platform inside-and-out.

Now I’m teaching everything I know.

I’m on a mission to answer all of the web’s WordPress questions, and with the lessons in my videos, you’ll skip hours of frustration and instead learn how to use WordPress in a way that is both simple and enjoyable.

If you want to keep up with my latest tutorials, make sure to subscribe to my channel, and if you have a topic you want covered, post a video request in the comments below!

Click here to subscribe to my channel:

My Favorite Tools

Compete Themes – If you’re a passionate content creator – blogger, podcaster, photographer, etc – you should check out my free themes at Compete Themes.
Download a free theme:

– – – – – – – – – – –

Elementor – If you want complete control of your site’s design, you’ll love the Elementor plugin.
Download Elementor:

– – – – – – – – – – –

WPForms – Every website needs forms, and for contact forms, sales forms, and even email marketing forms, WPForms is my go-to choice.
Download WPForms:

– – – – – – – – – – –

WP Rocket – I LOVE the WP Rocket plugin for speeding up my site. It’s simple enough that I feel comfortable recommending it to brand new WP users, and yet it handles complex performance optimizations flawlessly.
Download WP Rocket:

– – – – – – – – – – –

Bluehost – If you’re looking for a very affordable host to get started with, Bluehost has plans as low as $2.95/month (I used them for my first site in 2010).
Signup with Bluehost:

– – – – – – – – – – –

Kinsta – If you want the best WordPress hosting money can buy, choose Kinsta. I use them to host all of my websites now.
Signup with Kinsta:

About this Video

Every post and page in WordPress has its own ID. There are times when you need to get one of these IDs for a plugin or code you’re writing. Luckily, find the ID is simple.

To locate the ID of a page, start by visiting the Pages menu and clicking on the page you need to get the ID of. Next, check out the URL at the top and you’ll find a part that reads, “?post=19”. The number you see will be different, but in my example, “19” is the ID of the page.

Whether you’re viewing a post or a page, the URL will always read “?post=” followed by an integer that is the ID. Now you can login to your site and find any IDs you need.

Affiliate Disclosure

Some of the links above are “affiliate links.” That means if you click one of these links and buy the recommended product, I receive a sales commission at no additional expense to you. If you appreciate the videos and you’re learning a lot about WordPress, using one of these links for your next purchase is a cool way to say, “thanks for the video.”

Subscribe now:


+ +