Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#17539 closed enhancement (invalid)

category-template improve for custom taxonomies?

Reported by: unsalkorkmaz Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.2
Component: General Keywords:
Focuses: Cc:


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?

Change History (1)

#1 @nacin
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

See my comment on the support forum.

Note: See TracTickets for help on using tickets.