Categories are kept in wp_terms and wp_term_taxonomy, and the table which combines post id with category id is wp_terms_relationships.
Ok I have a script that makes posts in wordpress but has nothing to define category yet. How would I then insert something into the wp_terms_relationships? Thanks! -David
I've got something like this right now $post_ID = wp_insert_post ( $post_data ); $sql = 'INSERT INTO `rl_blog`.`wp_term_relationships` (`object_id`, `term_taxonomy_id`) VALUES (\''.$post_ID.'\', \'31\');'; PHP: but I'm not quite sure how to do it because that doesnt work.