Find out WordPress post, page & page ID

With some WordPress plugins or widgets it can happen that you sometimes have to enter a WordPress page ID, page ID or post ID. But what are these IDs and how can I find out a WordPress site ID, for example? We clarify these questions in this article.

Which WordPress IDs are there?

As already mentioned, almost every WordPress content type has an ID, but they all work in the same way. For example, the following content types have IDs:

  • Pages (also called “page id”)
  • Posts (also called “post id”)
  • Comments
  • Categories (also called “tag id”)
  • Keywords / tags (also called “tag id”)
  • Users / authors (also called “user id”)

There are of course a few more, but these are the most commonly needed. The IDs of the WordPress pages are often called “page id” and the IDs of all other content types are often just “post id”. Technically, there is no difference between these names. All IDs can be found out in the same way.

Find out WordPress Page ID

  1. In your WordPress admin area click on “Pages” on the left.
  2. Now look for the page you want in the list of pages from which you would like to find out the ID.
  3. Move your mouse over the page name and you should now see a URL in the bottom left of your browser. The WordPress page ID is now in the URL after the parameter “post = XXX” .

Option 2: Find out the page ID in edit mode

  1. First go to the edit mode of your page from which you want to find out the page ID.
  2. Now you can see the current URL in the address bar of your browser. The WordPress page ID is now in the URL after the parameter “post = XXX” .

Find out WordPress Post ID (post id)

The post ID is basically the same as the page ID. So just follow the steps of one of the two ways above (the page ID) to find out the WordPress post id.

Find out WordPress Category and Tag ID

To find out the ID of a category or a keyword, you can proceed in exactly the same way as with finding out the page ID. The only difference is that you don’t have to look for “post = XXX” in the URL, but for “tag_ID = XXX”.

To do this, go to the edit mode for the category or keyword and search for “tag_ID = XXX” in the URL.

Find out the WordPress user id

To find out the ID of a user, you can proceed in exactly the same way as for finding out the page ID. The only difference is that you don’t have to look for “post = XXX” in the URL, but for “user_id = XXX”.

To do this, go to the user’s edit mode and search for “user_id = XXX” in the URL.

Was this article helpful?

Related Articles

Werbung