WordPress Tutorials and Blog Posts

How to Find the Page ID in Wordpress

Although Wordpress is quite intuitive in most cases, there are some things that are not as obvious, such as "Where do you find the the page ID in Wordpress?" This is especially useful if you're trying to exclude by Page ID certain pages that appear in the Pages Widget.

This tutorials will show you how to quickly find the hidden Page ID in Wordpress.

 

tutuploadstutuploadstutuploadsmedia_1305785395333.png

In the left menu click on Pages then the title of the Page.

 

tutuploadstutuploadstutuploadsmedia_1305785551634.png

The Page ID is hidden in the URL. Look for post= and the number to the right of it is your Page ID.

Comments

 
tokas
#1 tokas 2012-02-10 23:33

global $post;
$page_id = $post->ID;
 
 
Brett
#2 Brett 2012-11-07 11:32

Thanks guys. Very useful stuff simple and effective.
 
 
johngreg
#3 johngreg 2013-02-27 18:13

brilliant post, I was wondering how to do this - so simple! thankyou!
 

Add comment


Security code
Refresh

blog-ad

Start Online Training

Members get access to all our video training. That's 1,142 training sessions in Joomla, Drupal, WordPress and Coding.

Manage All Your Joomla Sites

adminicredible

With Admincredible you can update and manage all your Joomla sites. If you have 5 or 500 sites, Admincredible will make your life easier! Visit Admincredible.com.

Latest Comments

The License for Our Tutorials

All of our tutorials are published under the Creative Commons Attribution-NonCommercial license. This means:

  • You can re-use these tutorials.
  • You can modify these tutorials.
  • You must link back to our original tutorial.
  • You can't use these tutorials commercially.

Click here to read the full license.

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.