327 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
  • Sold between 50 000 and 100 000 dollars
  • United Kingdom
PaulWinslow says

Hi all,

I’m trying to register a taxonomy for a custom post type which is simple enough, but when I go back to my dashboard and try to click through to create some of the categories/taxonomies – I get a WordPress error that just says “Cheatin’ uh?”

Any idea why I’m getting this? Here’s my code for ref..

register_taxonomy("Project Categories", array("portfolio"), array("hierarchical" => true, "label" => "Project Categories", "singular_label" => "Project Category", "rewrite" => true));

Cheers.

2566 posts Put a Donk On It
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • United Kingdom
  • Exclusive Author
  • Attended a Community Meetup
  • Repeatedly helped protect Envato Market against copyright violations
  • Referred between 200 and 499 users
+5 more
ThemeProvince says

Hi all,

I’m trying to register a taxonomy for a custom post type which is simple enough, but when I go back to my dashboard and try to click through to create some of the categories/taxonomies – I get a WordPress error that just says “Cheatin’ uh?”

Any idea why I’m getting this? Here’s my code for ref..

register_taxonomy("Project Categories", array("portfolio"), array("hierarchical" => true, "label" => "Project Categories", "singular_label" => "Project Category", "rewrite" => true)); Cheers.

That error is shown when you don’t have the correct user permissions (WordPress not file permissions).

1950 posts Do the Needful
  • Has been a member for 4-5 years
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • United States
  • Has attended an Envato Live event
  • Author had a Free File of the Month
  • Envato Studio (Microlancer) Beta Tester
  • Contributed a Blog Post
  • Beta Tester
+6 more
JamiGibbs says

Try re-granting yourself administrative rights.

Also check if you have any post_types/taxonomies with the same name. I read somewhere that it can throw that error if you have duplicate names.

327 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
  • Sold between 50 000 and 100 000 dollars
  • United Kingdom
PaulWinslow says

I’ve definitely got admin role and this is the only custom taxonomy I’ve registered so it can’t be a name conflict – any other ideas, guys?

Much appreciated :)

136 posts
  • Sold between 50 000 and 100 000 dollars
  • Referred between 50 and 99 users
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • United Kingdom
ThemeShaper says

This ones an awesome fun error ;)

try:

register_taxonomy("projectcategories"

i.e. lower case ‘p’.

maybe 1 word is needed as well, but this error is definately thrown when you capitalise the name of the taxonomy. (nice eh ;))

if this doesn’t fix it, you might need to clear out the old taxonomies from the dbase, but removing the capital should do the trick.

1950 posts Do the Needful
  • Has been a member for 4-5 years
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • United States
  • Has attended an Envato Live event
  • Author had a Free File of the Month
  • Envato Studio (Microlancer) Beta Tester
  • Contributed a Blog Post
  • Beta Tester
+6 more
JamiGibbs says

Shot in the dark here but I just read on a support forum someone changed the taxonomy name to all lower case letters and the error went away.

327 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
  • Sold between 50 000 and 100 000 dollars
  • United Kingdom
PaulWinslow says

Yep – that worked.

register_taxonomy("projectcategories", array("portfolio"), array("hierarchical" => true, "label" => "Project Categories", "singular_label" => "Project Category", "rewrite" => true));

Cheers to you all :)

1 post
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • South Africa
stealth027 says
ThemeShaper said
This ones an awesome fun error ;)

try:

register_taxonomy("projectcategories"

i.e. lower case ‘p’.

maybe 1 word is needed as well, but this error is definately thrown when you capitalise the name of the taxonomy. (nice eh ;))

if this doesn’t fix it, you might need to clear out the old taxonomies from the dbase, but removing the capital should do the trick.

DUDE YOU ROCK !! Thanks so much! Stupid Capital, lol.

by
by
by
by
by
by