[wp-trac] [WordPress Trac] #17539: category-template improve for custom taxonomies?

WordPress Trac wp-trac at lists.automattic.com
Mon May 23 02:45:42 UTC 2011

#17539: category-template improve for custom taxonomies?
 Reporter:  unsalkorkmaz  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.2
 Severity:  minor         |   Keywords:
 I was trying to use json-api plugin but there was problem with custom
 taxonomies. I saw they found a fix but that needs to edit core files:

 I got custom code to retrieve custom taxonomy, I added this piece code to
 the file category-template.php line 95

 // $categories = wp_get_object_terms( $id, 'category' );
 $args = array('public' => true);
 $output = 'names'; // or objects
 $operator = 'and'; // 'and' or 'or'
 $taxonomies = get_taxonomies($args, $output, $operator);

 $categories = wp_get_object_terms( $id, $taxonomies);
 // END

 i dont want to edit core files but is there any chance to put this change
 for wp3.2?

Ticket URL: <http://core.trac.wordpress.org/ticket/17539>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list