When you deal with some theme, you will need this. Some theme do not provide us with menu to select the category that we want to show with ease. For some of us, we will got trouble to know, what is our Category ID
This post created after one of this beloved reader ask me, how to know our category id after he read this post. He want to know about this script : php query_posts(’showposts=5&cat=12. How can we know that category ID that we want to show is 12?
There are two way to know our ID. Category ID, or even a post ID. You can see my description below :
First way, a primitive way :
- Open your categories panel (left sidebar below post panel area)
- Move your mouse above any category name,
- See your id below the page (see this screen shot to get more clear idea | click the image to zoom it)
Second way, use plugin aid :
- Try to install plugins called Reveal IDs for WP Admin
- Open categories panel below post panel area (left sidebar)
- You will see the id easily (see the screen shot, click it to zoom)
Want to rate this post? use this
If you confuse, where to get this plugins, you can download it here :
Only registered member can view this content. Please Login or Register first.





Hi,
Yep that reveal IDs plugin is a life saver and not just for auto blogs either – God knows why the combined creators of wordpress seem to think it’s a “feature” to *not* show this valuable information whilst at the same time insisting that we use the numeric ID and not the Category Name in the code…
Mind you the whole category and tagging system in wordpress leaves a hell of a lot to be desired anyway so maybe we get better “features” down the line with V3.x series.
In the mean time WP is still probably the best bet out there if you don’t code your own and that is a hell of a lot of work – I know as I am working on a project just now that needs a blogging section written … what a pain.
Anyway, keep these posts coming. Lots of good stuff here
H
[Reply]