{"id":16,"date":"2026-05-17T18:25:41","date_gmt":"2026-05-17T18:25:41","guid":{"rendered":"https:\/\/eusouopaodavida.com.br\/?p=16"},"modified":"2026-05-17T18:27:12","modified_gmt":"2026-05-17T18:27:12","slug":"how-to-find-post-category-tag-comments-or-user-id-in-wordpress","status":"publish","type":"post","link":"https:\/\/eusouopaodavida.com.br\/?p=16","title":{"rendered":"How to Find Post, Category, Tag, Comments, or User ID in WordPress"},"content":{"rendered":"\n<p>Have you ever found yourself in a situation where you had to find a WordPress page ID, post ID, category ID, tag ID, comment ID, or user ID?<\/p>\n\n\n\n<p>While working on WordPress, you may need these IDs to add certain features to your website. An ID is a unique number that identifies a particular item in your WordPress database. Each post, page, category, tag, comment, and user in WordPress has its unique ID.<\/p>\n\n\n\n<p>In this article, we will show you how to easily find a post, category, tag, comment, or user ID in WordPress, step by step.<\/p>\n\n\n\n<p>By learning to find WordPress IDs, you\u2019ll be better equipped to troubleshoot issues and customize your website\u2019s functionality.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2013\/05\/find-wordpress-post-id-category-tag-comment-user-id-easily.png\" alt=\"Find WordPress post ID category tag comment user ID easily\" class=\"wp-image-125589\" title=\"Finding WordPress Post ID, Category ID, Tag ID, Comment ID, User ID Easily\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"aioseo-when-do-you-need-to-use-post-id-and-page-id-in-wordpress\">When Do You Need to Use Post ID and Page ID in WordPress?<\/h4>\n\n\n\n<p>WordPress uses a unique identification number for each blog post, landing page, comment, user, category, and tag on your website.<\/p>\n\n\n\n<p>Finding this information is important if you are using a WordPress plugin that requires a specific ID for a page or post to add a feature or a visual effect.<\/p>\n\n\n\n<p>For example, you can use a plugin to&nbsp;<a href=\"https:\/\/www.wpbeginner.com\/plugins\/how-to-add-subtitle-for-posts-and-pages-in-wordpress\/\">add subtitles for posts and pages<\/a>&nbsp;using the respective post ID and page ID.<\/p>\n\n\n\n<p>Similarly, let\u2019s say you want to&nbsp;<a href=\"https:\/\/www.wpbeginner.com\/plugins\/how-to-hide-a-post-from-home-page-in-wordpress\/\">hide a specific WordPress post from your homepage<\/a>. Then, you will need the exact page ID and post ID to remove it from your homepage.<\/p>\n\n\n\n<p>That being said, let\u2019s see how you can find the page, post, category, tag, comment, or user ID in WordPress.<\/p>\n\n\n\n<p>To help you navigate our guide smoothly, you can click the links below to jump ahead to any section:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.wpbeginner.com\/beginners-guide\/how-to-find-post-category-tag-comments-or-user-id-in-wordpress\/#find-post-page-id\">How to Find Post ID and Page ID in WordPress<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.wpbeginner.com\/beginners-guide\/how-to-find-post-category-tag-comments-or-user-id-in-wordpress\/#find-category-tag-id\">How to Find Your WordPress Category ID and Tag ID<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.wpbeginner.com\/beginners-guide\/how-to-find-post-category-tag-comments-or-user-id-in-wordpress\/#find-comment-id\">How to Find a Comment ID in WordPress<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.wpbeginner.com\/beginners-guide\/how-to-find-post-category-tag-comments-or-user-id-in-wordpress\/#find-user-id\">How to Find a User ID in WordPress<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.wpbeginner.com\/beginners-guide\/how-to-find-post-category-tag-comments-or-user-id-in-wordpress\/#aioseo-bonus-find-product-id-in-wordpress\">Bonus: Find Your Product ID in WordPress<\/a><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"find-post-page-id\">How to Find Post ID and Page ID in WordPress<\/h4>\n\n\n\n<p>In WordPress,&nbsp;<a href=\"https:\/\/www.wpbeginner.com\/beginners-guide\/what-is-the-difference-between-posts-vs-pages-in-wordpress\/\">posts and pages<\/a>&nbsp;are two main ways to add content. The posts are mainly used for timely articles, whereas pages are used for static content.<\/p>\n\n\n\n<p>Sometimes, you may want to filter your posts and pages or exclude them from certain features. In such a scenario, you may need your post and page IDs.<\/p>\n\n\n\n<p>Let\u2019s start with looking at how to find a post ID on your&nbsp;<a href=\"https:\/\/www.wpbeginner.com\/start-a-wordpress-blog\/\">WordPress blog<\/a>.<\/p>\n\n\n\n<p>First, you must visit the&nbsp;<strong>Posts \u00bb All Posts<\/strong>&nbsp;page from the WordPress admin sidebar and find the post whose ID you need.<\/p>\n\n\n\n<p>Next, hover your mouse over the post title to view your post ID.<\/p>\n\n\n\n<p>When you do that, your post-edit URL will appear at the bottom left-hand corner of your screen. Now, take a look at the number that comes between \u2018post=\u2019 and \u2018&amp;action.\u2019<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2013\/05\/find-post-id-in-wordpress.png\" alt=\"Find post ID in WordPress\" class=\"wp-image-125628\" title=\"WordPress Post ID\"\/><\/figure>\n\n\n\n<p>You got it! That\u2019s your WordPress post ID number.<\/p>\n\n\n\n<p>It is 25 in the example above.<\/p>\n\n\n\n<p>You can also view your WordPress post ID on the&nbsp;<a href=\"https:\/\/www.wpbeginner.com\/beginners-guide\/how-to-use-the-new-wordpress-block-editor\/\">block editor<\/a>&nbsp;screen. When you open a post to edit, the post edit URL will appear in your browser\u2019s address.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2013\/05\/see-post-id-in-url-1.png\" alt=\"See post ID in URL\" class=\"wp-image-125609\" title=\"WordPress Post ID in Web Browser's Address Bar\"\/><\/figure>\n\n\n\n<p>It is the same URL that had appeared at the bottom of the screen when you hovered your mouse over the post title.<\/p>\n\n\n\n<p>The number that comes after \u2018post=\u2019 and before \u2018&amp;action\u2019 is the post ID.<\/p>\n\n\n\n<p>Now, you can use the same method to find your WordPress page ID as well. The only difference is that you must go to the Pages menu instead of Posts and open the specific page whose ID you want to find.<\/p>\n\n\n\n\n\n<p>For example, the page ID in the screenshot above is 7.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"find-category-tag-id\">How to Find Your WordPress Category ID and Tag ID<\/h4>\n\n\n\n<p><a href=\"https:\/\/www.wpbeginner.com\/beginners-guide\/categories-vs-tags-seo-best-practices-which-one-is-better\/\">Categories and tags<\/a>&nbsp;are used for sorting content on your WordPress website.<\/p>\n\n\n\n<p>Sometimes, you may need to find a category or tag ID to add a plugin feature.<\/p>\n\n\n\n<p>Finding a WordPress category ID, tag ID, or another&nbsp;<a href=\"https:\/\/www.wpbeginner.com\/wp-tutorials\/create-custom-taxonomies-wordpress\/\">custom taxonomy<\/a>&nbsp;ID in WordPress is very similar to finding a post ID.<\/p>\n\n\n\n<p>To do this, visit the&nbsp;<strong>Posts \u00bb Categories&nbsp;<\/strong>page from your WordPress admin panel. When you can see the list of your categories, hover your mouse over the specific category title whose ID you are looking for.<\/p>\n\n\n\n<p>Now, you can see the category edit URL appear on a popup box in the bottom left corner of your screen.<\/p>\n\n\n\n\n\n<p>Your category ID is right there in the URL. It is the number that comes after \u2018category&amp;tag_ID=\u2019 and before \u2018&amp;post_type.\u2019<\/p>\n\n\n\n<p>In the screenshot above, your WordPress category ID is 5.<\/p>\n\n\n\n<p>You can also view your WordPress category ID by editing it. Simply open a category to edit, and you\u2019ll see the category ID in the browser\u2019s address bar.<\/p>\n\n\n\n\n\n<p>It is the same URL that appeared when you did a mouse hover over your category title.<\/p>\n\n\n\n<p>The category ID is the number between \u2018category&amp;tag_ID=\u2019 and \u2018&amp;post_type\u2019, which is 2.<\/p>\n\n\n\n<p>You may notice that even though we are editing a category, WordPress still displays the category ID as tag_ID. Don\u2019t get confused by this.<\/p>\n\n\n\n<p>All categories and tags are terms inside a&nbsp;<a href=\"https:\/\/www.wpbeginner.com\/glossary\/taxonomy\/\">WordPress taxonomy<\/a>. The same editor handles them.<\/p>\n\n\n\n<p>Now, you can similarly find your WordPress tag ID.<\/p>\n\n\n\n<p>First, visit the&nbsp;<strong>Posts \u00bb Tags<\/strong>&nbsp;screen from the WordPress dashboard and then hover the mouse over the tag whose ID you want to view.<\/p>\n\n\n\n<p>Once done, your tag edit URL will appear in the bottom left corner of the screen.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2013\/05\/wordpress-tag-id.png\" alt=\"WordPress tag ID\" class=\"wp-image-125614\" title=\"WordPress Tag ID\"\/><\/figure>\n\n\n\n<p>In the URL, the unique number between \u2018tag&amp;tag_ID=\u2019 and \u2018&amp;post_type\u2019 is your tag ID. In the screenshot above, 9 is your tag ID.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"find-comment-id\">How to Find a Comment ID in WordPress<\/h4>\n\n\n\n<p>To find a comment\u2019s ID, head over to the&nbsp;<strong>Comments&nbsp;<\/strong>page in your WordPress admin panel. Here, you will see a list of the&nbsp;<a href=\"https:\/\/www.wpbeginner.com\/plugins\/how-to-allow-blog-users-to-moderate-comments-in-wordpress\/\">comments on your WordPress site<\/a>.<\/p>\n\n\n\n<p>Simply hover your mouse over the \u2018Edit\u2019 link under the desired comment. Next, you will see the comment edit URL at the bottom left corner of your screen.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2013\/05\/wordpress-comment-id-1.png\" alt=\"WordPress comment ID\" class=\"wp-image-125617\" title=\"WordPress Comment ID\"\/><\/figure>\n\n\n\n<p>Your WordPress comment ID is right there at the end of the URL, after the \u2018editcomment&amp;c=.\u2019 In the above screenshot, your comment ID is 2.<\/p>\n\n\n\n<p>Similar to posts, pages, categories, and tags, you can also open the comment editor page to view your comment ID.<\/p>\n\n\n\n<p>On the comment editor page, you can find your comment ID at the end of the comment edit URL.<\/p>\n\n\n\n\n\n<h4 class=\"wp-block-heading\" id=\"find-user-id\">How to Find a User ID in WordPress<\/h4>\n\n\n\n<p>Just like other items we discussed above, you can also find a user ID by looking at the user editing URL or by editing the user.<\/p>\n\n\n\n<p>Go to the&nbsp;<strong>Users \u00bb All users<\/strong>&nbsp;page from the WordPress admin area and hover your mouse over the user name.<\/p>\n\n\n\n<p>WordPress will now show the user edit URL in a small popup box in the bottom left corner of your screen.<\/p>\n\n\n\n\n\n<p>The number that comes after \u2018user_id=\u2019 and before \u2018&amp;wp\u2019 is your WordPress user ID. In the screenshot above, the user ID is 2.<\/p>\n\n\n\n<p>You can also find a user ID also in the user editor page. Simply click on the \u2018Edit\u2019 link under a user name.<\/p>\n\n\n\n<p>Next, WordPress will open the user\u2019s profile, and you can get the user ID from the browser\u2019s address bar.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2013\/05\/user-id-in-url.png\" alt=\"User ID in URL\" class=\"wp-image-125620\" title=\"WordPress User ID in Web Browser's Address Bar\"\/><\/figure>\n\n\n\n<p>If you are trying to find your own user ID, then WordPress will open the profile editor without a user ID in the URL.<\/p>\n\n\n\n<p>To find your user ID, visit the&nbsp;<strong>Users \u00bb All Users<\/strong>&nbsp;page from the admin area. WordPress will display a list of authors with the number of posts they have written next to it.<\/p>\n\n\n\n<p>Hover the mouse over the number of posts you have written, and you will be able to see your author edit URL at the bottom left corner of the screen. This URL includes your author ID.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2013\/05\/find-our-own-id.png\" alt=\"Find our own ID\" class=\"wp-image-125622\" title=\"Your User Profile ID in WordPress\"\/><\/figure>\n\n\n\n<p>Alternatively, you can click on the number of posts you have written, and then WordPress will redirect you to a page that lists all posts written by you.<\/p>\n\n\n\n<p>Here, you can get the user ID from the browser\u2019s address bar because it will be displayed as an author, like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2013\/05\/find-your-id-in-the-url.png\" alt=\"Find your ID in the URL\" class=\"wp-image-125623\" title=\"Your User Profile ID in WordPress - On Browser's Address Bar\"\/><\/figure>\n\n\n\n<p>In this example, the user (author) ID is 1.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"aioseo-bonus-find-product-id-in-wordpress\">Bonus: Find Your Product ID in WordPress<\/h4>\n\n\n\n<p>If you have a WooCommerce store, then you may need to find your product ID sometimes to display it on a page, show related products, or&nbsp;<a href=\"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-upsell-products-in-woocommerce\/\">offer upsells<\/a>.<\/p>\n\n\n\n<p>You can easily do this by visiting the&nbsp;<strong>Products \u00bb All Products<\/strong>&nbsp;page from the WordPress dashboard.<\/p>\n\n\n\n<p>Once you are there, simply hover your mouse over a product title of your choice. A line of command will now be shown under the title, along with the product ID number.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2023\/08\/product-id-under-all-products.png\" alt=\"Product ID displayed under product title on the All Products page\" class=\"wp-image-205113\" title=\"Product ID displayed under product title on the All Products page\"\/><\/figure>\n\n\n\n<p>If you want, then you can also click the \u2018Edit\u2019 link to open the product page.<\/p>\n\n\n\n<p>You will then be able to see the product ID in the URL on your browser\u2019s address bar.<\/p>\n\n\n\n<p>For more detailed instructions, see our tutorial on&nbsp;<a href=\"https:\/\/www.wpbeginner.com\/beginners-guide\/how-to-find-product-id-in-woocommerce-beginners-guide\/\">how to find product IDs in WooCommerce<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2023\/08\/product-id-in-address-bar.png\" alt=\"Product ID in browser's address bar\" class=\"wp-image-205130\" title=\"Product ID in browser's address bar\"\/><\/figure>\n\n\n\n<p>We hope this article helped you find the post, category, tag, comments, and user ID in WordPress. You may also want to see our beginner\u2019s guide on&nbsp;<a href=\"https:\/\/www.wpbeginner.com\/plugins\/how-to-export-all-wordpress-urls-in-plain-text\/\">how to export all WordPress URLs in plain text<\/a>&nbsp;or our expert pick of the&nbsp;<a href=\"https:\/\/www.wpbeginner.com\/showcase\/6-best-ftp-clients-for-wordpress-users\/\">best FTP clients for WordPress users<\/a>.<\/p>\n\n\n\n<p>If you liked this article, then please subscribe to our&nbsp;<a href=\"https:\/\/youtube.com\/wpbeginner?sub_confirmation=1\" target=\"_blank\" rel=\"noreferrer noopener\">YouTube Channel<\/a>&nbsp;for WordPress video tutorials. You can also find us on&nbsp;<a href=\"https:\/\/twitter.com\/wpbeginner\" target=\"_blank\" rel=\"noreferrer noopener\">Twitter<\/a>&nbsp;and&nbsp;<a href=\"https:\/\/facebook.com\/wpbeginner\" target=\"_blank\" rel=\"noreferrer noopener\">Facebook<\/a>.<\/p>\n\n\n\n<p>\u00a0<a href=\"mailto:?subject=Your%20friend%20has%20shared%20an%20article%20you%20with%20you.&amp;body=How%20to%20Find%20Post,%20Category,%20Tag,%20Comments,%20or%20User%20ID%20in%20WordPress%20https%3A%2F%2Fwww.wpbeginner.com%2Fbeginners-guide%2Fhow-to-find-post-category-tag-comments-or-user-id-in-wordpress%2F\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever found yourself in a situation where you had to find a WordPress page ID, post ID, category ID, tag ID, comment ID, or user ID? While working on WordPress, you may need these IDs to add certain features to your website. An ID is a unique number that identifies a particular item [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/eusouopaodavida.com.br\/index.php?rest_route=\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eusouopaodavida.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eusouopaodavida.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eusouopaodavida.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eusouopaodavida.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16"}],"version-history":[{"count":1,"href":"https:\/\/eusouopaodavida.com.br\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":17,"href":"https:\/\/eusouopaodavida.com.br\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions\/17"}],"wp:attachment":[{"href":"https:\/\/eusouopaodavida.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eusouopaodavida.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eusouopaodavida.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}