get all posts id from categories for config.php