[wp-trac] [WordPress Trac] #39129: get_the_terms seems to be broken after upgrading to version 4.7
WordPress Trac
noreply at wordpress.org
Wed Dec 7 02:26:00 UTC 2016
#39129: get_the_terms seems to be broken after upgrading to version 4.7
-------------------------------------+------------------------------
Reporter: kuphd1 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.7
Severity: major | Resolution:
Keywords: reporter-feedback close | Focuses:
-------------------------------------+------------------------------
Changes (by jonathan176):
* severity: normal => major
Comment:
I am getting this too! I am trying to pull the terms of a custom post
type. Im getting an array, but not of terms. Below is an output of
{{{
get_the_terms($Post->ID,$taxname);
returns
Array(
[_edit_last] => Array([0] => 2)
[dd_biosphere_position] => Array([0] => Description)
[layout] => Array ([0] => full_width)
[slide_template] => Array([0] => default)
[enable_carousel] => Array([0] => false)
[posts_to_show] => Array([0] => -1)
[posts_description_length] => Array([0] => 100)
[_edit_lock] => Array([0] => 1449370184:2)
[body_classes] => Array([0] =>)
[_body_classes] => Array([0] => field_548a4a569d990)
[wp_featherlight_disable] => Array([0] =>)
[_thumbnail_id] => Array([0] => 13084)
)
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39129#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list