WordPress.org

Ready to get started?Download WordPress

Forums

User Taxonomies
get_the_terms Broken with WP 3.5 (1 post)

  1. benjaminniess
    Member
    Posted 1 year ago #

    Hello,

    With the 3.5 version if wordpress there is a change in the "get_the_terms" function. It begins by testing if the post_id in param is a real wp post.

    If their is a post with the ID than the current user id it works. Else, it return false so the user has not term associated.

    The solution is to use the function wp_get_object_terms instead of get_the_terms

    http://wordpress.org/extend/plugins/user-taxonomies/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.