Bug in DB query
-
The function `get_coauthor_terms_for_post’ is not “grabbing a correctly ordered list of authors for a single post”
Actually if one var_dumps the$coauthor_terms
variable set as:$coauthor_terms = wp_get_object_terms( $post_id, $this->coauthor_taxonomy, array( 'orderby' => 'term_order', 'order' => 'ASC', ) );
All of the authors “Term_order” are set to the same value of 0.
["term_order"]=> string(1) "0"
Hence, order of authors is displayed randomly as the “orderby” is doing nothing.
- The topic ‘Bug in DB query’ is closed to new replies.