Advanced Custom Fields
[resolved] Can't use wp_set_post_terms() in action 'save_post' (2 posts)

  1. Marko Heijnen
    Posted 3 years ago #

    I'm running trunk but it also occurs on 3.4.2. When I don't have this plugin enabled I can set a taxonomy on post creating but whenever I enable this plugin that stops working.

    wp_set_post_terms() returns then an empty array.


  2. Marko Heijnen
    Posted 3 years ago #

    It was my own bad. Due the need of having the taxonomy hierarchical I had to pass the term_id as an array and not as a string/int. Also passed only the name but had the ones to term_id but changed it back.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.