Skip to:
Content

bbPress.org

Opened 11 years ago

Closed 11 years ago

#2444 closed defect (bug) (fixed)

Strange behaviors with topic-tag taxonomy

Reported by: michelwppi's profile michelwppi Owned by: johnjamesjacoby's profile johnjamesjacoby
Milestone: 2.6 Priority: normal
Severity: normal Version: trunk
Component: General Keywords:
Cc:

Description

After (long) hours of tests with this topic-tag custom taxonomy and others, please find some notes:

Consider topic-tag (bbpress) and another custom taxonomy named here "zone"

for template pages in theme with URI ending by ?topic-tag=tp1 or ?zone=z1

taxonomy-topic-tag.php is well selected but functions inside (is_tax('topic-tag') and is_archive()) don't work and don't return true as in

taxonomy-zone.php (and taxonomy.php) is (are) well selected and functions inside (is_tax('zone') and is_archive) work and return true

taxonomy.php is not selected with topic-tag taxonomy (strange and not coherent in data model :-( )

the $wp_query->is_tax() is not true with topic-tag taxonomy and occurs troubles to manage another function as in custom menu or else in header, sidebar or footer...

Workaround :
$queried_object = $wp_query->get_queried_object(); and $queried_object -> taxonomy which remain coherent.

I don't why and when bbPress reset

is_tax()

to false but it is not robust for data-model ( $queried_object faulty ) and good coding with generic functions. (by example for CMS or with plugin like xili_tidy_tags 1.9 and new grouping features).

M.
Plugins author

Note: I reopen old #1591 to attach this new ticket.

Change History (5)

#1 @michelwppi
11 years ago

Last edited 11 years ago by michelwppi (previous) (diff)

#2 @michelwppi
11 years ago

  • Version changed from 2.1 to trunk

concern bbPress 2.4 on WP 3.6.1

#3 @johnjamesjacoby
11 years ago

  • Milestone changed from Awaiting Review to 2.6

Good points. These can likely be adjusted back as part of the bbp_theme_compat_reset_post function.

#4 @johnjamesjacoby
11 years ago

  • Owner set to johnjamesjacoby

#5 @johnjamesjacoby
11 years ago

  • Resolution set to fixed
  • Status changed from new to closed

In 5315:

Set is_tax to true when calling bbp_theme_compaty_reset_post() when viewing/editing a topic-tag. Fixes #2444.

Note: See TracTickets for help on using tickets.