I have the following problem:
I have written a plugin which adds a custom post type with a custom toxonomy to my wordpress site. The plugin runs a cronjob every 10 minutes. When the cronjob is executed, data is fetched from a remote server. A part of the data contains terms that have to be associated with my custom post type. So i want to insert them as term in my custom taxonomy for my custom post type.
I tried to use wp_insert_term(), however after calling it nothing seems to be inserted. Did anyone face this problem aswell? and how did you solve it?
Thanks in advance.
- The topic ‘Cannot insert terms’ is closed to new replies.