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.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [12224]) Do not use the unreliable in_the_loop() when grabbing terms. fixes #11189