Title: get_the_terms gives empty array
Last modified: August 20, 2016

---

# get_the_terms gives empty array

 *  [metrobee](https://wordpress.org/support/users/metrobee/)
 * (@metrobee)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/get_the_terms-gives-empty-array/)
 * Hi, i keep getting an empty array when i use `get_the_terms( $post->ID, 'actors')`.
   
   On the other hand get_terms function gives me all ‘actors’! But I only want those
   actors which are related to a post. `get_terms( 'actors', 'orderby=count&hide_empty
   =0' ); ?>` whats the trick?
 * [http://wordpress.org/extend/plugins/cpt-onomies/](http://wordpress.org/extend/plugins/cpt-onomies/)

Viewing 1 replies (of 1 total)

 *  [Rachel Cherry](https://wordpress.org/support/users/bamadesigner/)
 * (@bamadesigner)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/get_the_terms-gives-empty-array/#post-3360685)
 * Well, get_terms() is supposed to give you all the terms so it’s doing its job
   just fine.
 * get_the_terms() is supposed to give you all the terms assigned to a post.
 * Have you checked out the “Troubleshooting” section of the “Help” dropdown in 
   the admin?

Viewing 1 replies (of 1 total)

The topic ‘get_the_terms gives empty array’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cpt-onomies_f2f2f2.svg)
 * [CPT-onomies: Using Custom Post Types as Taxonomies](https://wordpress.org/plugins/cpt-onomies/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cpt-onomies/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cpt-onomies/)
 * [Active Topics](https://wordpress.org/support/plugin/cpt-onomies/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cpt-onomies/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cpt-onomies/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rachel Cherry](https://wordpress.org/support/users/bamadesigner/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/get_the_terms-gives-empty-array/#post-3360685)
 * Status: not resolved