Locating the ID of your WordPress page or post

There might be cases when you’ll need to know an unique ID of your WordPress post or page in order to setup specific options on the site or make custom changes to a specific page or post. By default, every post and page you create in WordPress has an unique ID number.

There are two ways to find out the ID of your post or page: using the Posts and the Pages screen or the Editor screen. Navigate to the Pages → All Pages or Posts → All Posts page and hover over the page (post) link. At the bottom of the page you will find a link with an ID number. Here is an example of the link:

In this case, the page ID is 2. You can see it in the link shown at the bottom of the page.

Also, you can click on the page (post) link and it will redirect you to the Edit page. Your page (post) ID number will be displayed in the address bar at the top of the page.

In this case, the page ID is 2. You can see it in the the address bar.

You can also use plugins to determine IDs. Simply install and activate Reveal IDs for WP Admin or ShowID for Post/Page/Category/Tag/Comment.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.