• I’m trying to simplify a content migration by running a Node script using node-wpapi. Manual additions through the WP dashboard work and the taxonomy is REST enabled. When I try to update a custom taxonomy in my posts using the following code, my submission goes through without error, but my data doesn’t get updated:

    await wp.posts().id(id).update({
      terms: { publication: pubID }
    })

    What am I doing wrong?

    • This topic was modified 5 years, 5 months ago by selfagency.
    • This topic was modified 5 years, 5 months ago by selfagency.
    • This topic was modified 5 years, 5 months ago by selfagency.
    • This topic was modified 5 years, 5 months ago by selfagency.
  • The topic ‘Update custom taxonomy on post using REST API’ is closed to new replies.