Oops forget about the debugging line: echo $item->ID . ' '. $itemId; echo "\n"; -- Lox lox.dev at knc.nc