Slug Change
-
Hi
First of all, thanks for the awesome plug-in!
Secondly, I was wondering if it is possible to change the default slug used for individual posts? My main FAQ page is located under support/faq and I would like the permalink for individual faq posts (as returned by search etc) to be of the format support/faq/my-test-faq.
As a first stab I tried adding the following function to re-write the slug from just faq to faqtest…
add_filter( 'arconix_faq_defaults', 'my_faqslug_rewrite' ); function my_faqslug_rewrite( $defaults ) { $defaults['post_type']['args']['rewrite']['slug'] = 'faqtest'; return $defaults; }A search now returns the expected URL for faqs e.g. faqtest/my-test-faq instead of faq/my-test-faq but if I click on the link I get a 404 Page Not Found error. I have tried creating new faxes to see if it was an issue with existing links but still get the 404 error.
I’m a novice to WordPress so any advice would be greatly appreciated!
Thanks
Alan
The topic ‘Slug Change’ is closed to new replies.