Every time you publish a post, page, or other entry in a custom post type, a unique post ID is generated to make it easy to reference and gather all data related to that post only. This guide will show you a fast way to find the post ID of any entry you make in WordPress.

First, login to your WordPress dashboard and go to the post type where the post/page you want is located. To keep this simple, I will use the standard Posts type that comes with every WordPress installation.

After you have scrolled through your lists of published posts to find the one you want, click the title to edit it and go to the posts editor.

How to edit posts in WordPress

If you are viewing your site from the frontend and want to jump straight to the Edit screen that way, simply find the “Edit Post” link in the toolbar at the top of your site (will only show you are logged in).

Edit posts from the Admin Toolbar in WordPress

Once you are on the Edit screen, take a look at the URL bar in your browser and you will see a similar link as below with the post ID:


In the bold text above you can see the post ID is 433.

Get the post ID in your WordPress URL

Now the next time a plugin or a theme asks you for a post ID to show a post, you know where to get it!

See how Marketers Delight helps you create better content using simple tricks like this to make publishing to the web easier.


Alex is the 29 years old creator of Marketers Delight.


add comment
  1. Hello,

    How do I find the post ID of the homepage though?
    I didn’t change the URL of it.

    Thank you! 🙂

    • Hi Anne! Great question and I will have to include that in the article.

      Since WordPress doesn’t have an edit page for your blog homepage (unless you set it as a page in WP Admin > Settings > Reading) one way to get the ID is to right click > view source and search for this keyword:


      and see what number is attached to it. For example:


      78953 is the ID, and you can do this for any page you have as well.

      Let me know if that works for you!

Leave a Comment

November sale: Save 25% on all new licenses!