johnbillion / extended-cpts

A library which provides extended functionality to WordPress custom post types and taxonomies.
GNU General Public License v2.0
979 stars 96 forks source link

Registered Taxonomy Name #129

Closed fabianwurk closed 4 years ago

fabianwurk commented 4 years ago

When I register a taxonomy called 'job-category' it adds 's' to menu name, so reads 'Job Categorys', whereas, it should read 'Job Categories'

Any idea to why this would be?

Screenshot 2020-01-10 at 10 56 17

Here is the code where it's being registered:

Screenshot 2020-01-10 at 11 00 20
johnbillion commented 4 years ago

This is intentional, it's this automatic post type label generation.

Read the usage instructions for how to control this.

fabianwurk commented 4 years ago

Thanks John.

Is it to do with the label attribute, and if yes, how do I change/add that on the function itself?

Sorry, I'm just not clear on this as new to this method of calling cpts/taxonomies.

johnbillion commented 4 years ago

It's the $names argument. Take a look at the usage section in the readme and in the wiki where you'll find examples.

On Fri, 10 Jan 2020, 11:52 fabianwurk, notifications@github.com wrote:

Thanks John.

Is it to do with the label attribute, and if yes, how do I change/add that on the function itself?

Sorry, I'm just not clear on this as new to this method of calling cpts/taxonomies.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/johnbillion/extended-cpts/issues/129?email_source=notifications&email_token=AABS4MTFCVA7SXABTBP53G3Q5BOO7A5CNFSM4KFGA6D2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEITWCTY#issuecomment-573006159, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABS4MS7NQYRXAH22DKT6TTQ5BOO7ANCNFSM4KFGA6DQ .

fabianwurk commented 4 years ago

Thanks, got it sorted now John.