Skip to content

Instantly share code, notes, and snippets.

@niran
niran / WordPress category object structure.php
Created July 20, 2009 20:33
WordPress category object structure
<?php
# If you haven't played around with WordPress much and you're trying to find out what
# exactly this "category object" thing that's referenced in many places is. You might
# look for a category table in the database for some clues, but there isn't one. That's
# because WordPress uses "terms" to handle both categories and tags, each of which are
# "taxonomies". Looking in those tables will give you want you want, or you could just
# print a category object.
#
# More info: http://codex.wordpress.org/WordPress_Taxonomy