Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#11189 closed defect (bug) (fixed)

the_tags() does not work in custom WP_Query loops

Reported by: markjaquith Owned by:
Priority: high Milestone: 2.9
Component: Template Version:
Severity: major Keywords:
Cc: Focuses:

Description

get_the_terms() relies on the function in_the_loop() to determine whether it should grab the global $post->ID. in_the_loop only returns true for the main $wp_query loop. Thus, a call to the_tags() will not work.

Change History (1)

#1 @markjaquith
17 years ago

  • Resolutionfixed
  • Status newclosed

(In [12224]) Do not use the unreliable in_the_loop() when grabbing terms. fixes #11189

Note: See TracTickets for help on using tickets.