338 posts
  • Has been part of the Envato Community for over 4 years
  • Located in United Kingdom
  • Made it to the Authors' Hall of Fame
  • Sells items exclusively on Envato Market
+3 more
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.

2588 posts Put a Donk On It
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has sold $250,000+ on Envato Market
+10 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 sold $125,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Has referred 10+ members
+10 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.

338 posts
  • Has been part of the Envato Community for over 4 years
  • Located in United Kingdom
  • Made it to the Authors' Hall of Fame
  • Sells items exclusively on Envato Market
+3 more
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 :)

138 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
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 sold $125,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Has referred 10+ members
+10 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.

338 posts
  • Has been part of the Envato Community for over 4 years
  • Located in United Kingdom
  • Made it to the Authors' Hall of Fame
  • Sells items exclusively on Envato Market
+3 more
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
  • Has been part of the Envato Community for over 5 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in 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.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by