0

I created a Custom Post Type for Games, but when I add it, the permalink is showing as http://site.com?my_games=test-game where my_games is the custom post type name and test-game is the post name.

I have 'rewrite' => false,, is there something else I should be doing?

I want the permalink structure to be the same as regular posts, /%category%/%postname%/

What do I need to change?

1 Answer 1

1

Your question has the answer right in it!

I have 'rewrite' => false,, is there something else I should be doing?

From the Codex:

To prevent rewrites, set to false.

By setting that to false, you're preventing the default behavior that you want.

1
  • oh, I thought setting to false would prevent the post type from doing a rewrite of it's own. Changed it to an array with a slug specified and that seems to do the trick. thanks
    – Kyle
    May 21, 2012 at 18:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.