WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#19874 closed defect (bug) (invalid)

Can't use 'author' as a custom taxonomy name

Reported by: nathanshubert Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.1
Component: Taxonomy Keywords: needs-patch
Focuses: Cc:

Description

I tried creating a custom taxonomy called 'author'. When using wp_tag_cloud or get_terms I got a list of terms with links, but the links would either take me to an empty archive page, or one with just a couple of the posts with a term from that taxonomy. As soon as I changed the taxonomy name from 'author' to something else everything was fine. Looks like there's a bug involving using 'author' as a taxonomy name.

Change History (1)

comment:1 @johnbillion3 years ago

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

The name 'author' is a reserved term as it's used internally by WordPress. You could try something like 'authorname' or 'bookauthor'.

Note: See TracTickets for help on using tickets.