Title: Quick Question
Last modified: August 19, 2016

---

# Quick Question

 *  [jessedrelick](https://wordpress.org/support/users/jessedrelick/)
 * (@jessedrelick)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/quick-question-13/)
 * Hi,
 * I was curious if methods with the wp_ prefix are different from methods without…
   I am curious because I am have some difficulty with
    wp_insert_term()… It seems
   I can only insert terms under certain conditions… I am trying to run a loop with
   a plugin function that inserts new posts from a CSV file and automatically adds
   the category/subcategory…
 * something like:
 * foreach($posts as $post){
    $category= $post[‘category’]; $cat_id= wp_insert_term(
   $category, ‘custom-taxonomy’); //Insert post with meta_category => array($cat_id),(
   something like that) }
 * This function is not attached to a hook, and it doesn’t seem to insert the term
   even though everything else works fine… Please help!!!

The topic ‘Quick Question’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [jessedrelick](https://wordpress.org/support/users/jessedrelick/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/quick-question-13/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
