WordPress Page ID – Where to Find It

This solution is for self-hosted WordPress sites, not wordpress.com websites.

Don’t know where to find a WordPress Post or Page ID? Here’s how to find it fast.

How to Find a Page ID in WordPress

First, login to your site and visit the Pages menu in your admin dashboard. Then, click on the Page that you need an ID for.

screenshot of Page in WordPress menu

Now in the edit screen, look at the URL in your web browser.

screenshot of a Page's ID in the URL

The Page ID is the number in the URL. This URL tells us that the Page being edited has an ID number of 61.

You can use this same trick to find a Post ID, Category ID, or Tag ID in WordPress. Just visit the Edit screen in your dashboard, and locate the ID number shown in the URL.

How to Quickly Find Many Page/Post IDs

Now you know where to look when you need to find an ID. However, if you find yourself looking for IDs often, you may want a faster method.

In this case, check out the Reveal IDs plugin. It makes finding IDs a bit easier because it displays the Post and Page IDs in the admin menus. This can save you a lot of time if you need to get IDs from many Posts or Pages.

Related Posts

16 Comments

  1. The ID won’t show up in the public URL (permalink), but it will always show in the URL when you’re viewing the page/post/category in your dashboard, regardless of your permalink structure.

    • thanks alot this solves the perma link issue lol.. been searching for hours to this problem.

    • Tyler Tyler

      Definitely not true. This is the issue I’m having now. No matter where I look, it shows the name of the Page/Post and not the ID. Need a solution. Buddy press isn’t compatible with plain permalinks, so that doesn’t work for me either

      • The permalink structure is entirely separate from the admin URLs and won’t affect them. It would be very unusual for the admin URL to not display the ID of the post/page being edited.

        An alternative solution would be to install the Reveal IDs plugin. This will display the IDs in the post/page listings.

  2. Todd Todd

    Thank you! 🙂

  3. Daniel Daniel

    How can I search for this page. For example, if I have 100 pages and only the number, how can I search for this page via the number without have to go through every page in backend in WordPress.

    • I’m really surprised the search doesn’t let you do this. Luckily, there is a plugin that will enable this functionality: https://wordpress.org/plugins/search-by-id/

      When you’re viewing all your posts/pages, use the search bar on the right-side to search for the ID and the post/page will come up.

      • jeena jeena

        Ben Sibley your comment plugin is awesome. Can you please tell me this plugin name..

        • Hi Jeena,

          This site is using the WordPress’ built-in comment system.

  4. Very helpful. I accidentally found one detail that may help the id to appear: after opening up the page whose ID you want, the URL won’t display the ID but only the permalink, until you click in the URL . Then the ID is added. At least in the Opera browser I use.

  5. Refreshing to find an article where you click on the link. And find the answer in seconds. Situation: W! Thank you for the simple and clean answer to a question 🙂

  6. Thanks! The quickest find, download, install and WORKING solution I’ve had in a long time. Much appreciated!

  7. Ypou just made my day. Thanks for the post. I just located my page Id by following your directions. Needed it to cutomize a particular page.

  8. Thanks for posting this guide. finally using this i can edit with css. Thanks..

  9. Thanks for this helpful info.

    When it asks me to list the Page ID separated by commas, does it just want the numeral/number (i.e. 61) or the entire phrase (post-61)?

Post a comment

Your email address will not be published. Required fields are marked *