• Hey folks,

    I need some help with regards to solving a problem i have with custom post types and their associated permalink structure. I am in the middle of designing a site which sells clothes. I have created a custom post type named ‘trousers’ (these are better known as pants in the USA). Each new custom trouser post will be a product and i would like the permalink structure to be mysite/trousers/product-name. On my functions page the rewrite code is as follows:

    ‘rewrite’ => array(‘slug’ => ‘trousers’, ‘with_front’ => false),

    On my permalinks setting page i have it set to ‘custom’ and /%category%/%postname%/ yet this creates an error and i am unable to view the post.

    However, if i leave the rewrite code the same, but change the permalink settings on the dashboard back to ‘default’, the post is displayed but with this unwanted permalink structure: mysite/?trousers=nike-cropped.

    How can i overcome this problem and have my custom post types displaying and with the correct permalink?? Any help would be greatly appreciated. Thanks in advance, Patrick.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help needed with Permalinks and Custom Post Types!!’ is closed to new replies.