Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to modify default 'category' taxonomy #42

Open
iniznet opened this issue Jun 24, 2022 · 1 comment
Open

Unable to modify default 'category' taxonomy #42

iniznet opened this issue Jun 24, 2022 · 1 comment

Comments

@iniznet
Copy link

iniznet commented Jun 24, 2022

Similar to the #36 issue, this also happening to WordPress default taxonomy.

ErrorException:
Attempt to read property "menu_name" on array
File: wp/wp-admin/menu.php
Line: 179

Poet:

'category' => [
    'links' => ['series', 'series-queue', 'chapter'], // This also doesn't work, unable to link CPT
    'meta_box' => 'radio',
    'labels' => [
        'singular' => 'Series',
        'plural' => 'Series',
    ],
],

Removing the default taxonomy is work fine, though.

@slackday
Copy link

slackday commented Feb 2, 2024

Add "menu_name" key to 'labels' array and define it as 'labels' => (object)[ ... ] to convert from object to array. It's not pretty but it works as a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants