WordPress Filter & Sort Categories

Include & Exclude Categories

The argument is an array that has one item called include on the left and the actual category IDs separated by a comma on the right side.

$args = array('include' => '229,198');foreach (get_categories($args) as $cat) {