free hit counters
If you are using Internet Explorer as your browser please be running at least IE 7 or above. This site does not support IE 6 or below. Go here for the latest free version including easy download and installation instructions If you want to make it real easy on yourself, download Firefox , the most popular browser in the world. It's free and simple. You'll be so glad you did.
Jan
17
2009

How to find your page or post id #

Say you’re writing some code and you need to declare the page id #

is_page()

or you need to declare the post id #

is_single()

so you can put it in the brackets, you can find the id pretty easily. Simply go to the page or post that you want to use and look in the address bar of your browser. At the end of the URL you’ll find something like this…

?p=100
?c=100

The number is the id #. Whatever number it is will be the number you use to write your code.

Leaving a comment with code in it...

If you would like to leave a comment and you have examples of code you want to show, you must "escape the code". This allows the entire code to show correctly by inserting certain variable around certain tags to make them show. If you don't "escape the code" your code will show up broken, mangled, and it won't be able to be seen correctly. "Escaping the code" is very simple...

  1. Copy your code you want to show
  2. Click here to go to the site to escape the code
  3. Follow the directions, it's so easy
  4. Once you have the escaped code copied, paste it in the comments area where you want
  5. Now you can enjoy life


Go ahead, leave a comment...

Leave a Comment

Previous post: How to make changes to your custom.css file

Next post: Where to find your custom_functions.php file