Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

http://valeriegeffner.com/valstore/products is the site i'm working on // if you hover over the product the url is /archives/valstore/products/%the_product_name% // the problem i'm having is that the archives is being put in there for some reason && if you go to the product all links (( including nav bar )) have archives inject'd into them.

any ideas ? only solution i can think of is doing some sort of url rewriting w/ .htaccess (( tho i'm not entirely sure how to pull that off ))

share|improve this question
add comment

1 Answer

You need to set the rewrite parameter with_front to false inside your post type registration.

'rewrite'  => array( 'slug' => your-posttype-slug, 'with_front' => false ),

See the rewrite parameter on the register_post_type codex page.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.