WordPress Page ID – Where to Find It

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

It’s not obvious where to find post and page IDs, but once you know where to look it only takes a second.

Here’s where to look…

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. You’ll see “?post=XX” where “XX” is the ID of the post or page you’re looking at.

In this example below, the page’s ID is 61.

screenshot of a Page's ID in the URL

To find the ID of any post or page, navigate to the editor for that post/page and you’ll always find the ID in the URL after the “?post=” text.

I used a page in my example, but you can use this same trick to find a postย ID, category ID, or tag ID in the WordPress dashboard. Visiting the Edit page for any category or tag will work the same way in that the ID will be 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.

Read these posts next

Want a more successful website?

Make your website a masterpiece with our FREE 7-day WordPress Email Course.

Invalid email address
Unsubscribe at any time.


  1. Ben Sibley Ben Sibley

    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.

    • raghul raghul

      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

      • Ben Sibley Ben Sibley

        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.

    • Ben Sibley Ben Sibley

      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..

        • Ben Sibley Ben Sibley

          Hi Jeena,

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

  4. Dave Leach Dave Leach

    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. Maximus Maximus

    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. Kathy Rausch Kathy Rausch

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

  7. Angu Ransom Angu Ransom

    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. kathir kathir

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

  9. Kevin Kevin

    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)?

    • Ben Sibley Ben Sibley

      Hey Kevin,

      The ID will be the integer only e.g. 61.

  10. Mohammad Mahdi Mohammad Mahdi

    Thank you
    You taught well ๐Ÿ™‚

  11. brett brett

    Would have never found that. Thanks a bunch

Comments are closed.