WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Marko Heijnen
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. Marko Heijnen
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.