kade
asked 8 years ago

Hi, i have try all solution found here and google :
-update permalink
-flush permalink
-change the single question permalink
But I still have 404 error when I going to single question. Can someone help me please ?
The only way i have found is to switch to Default (ugly) permalink but it’s not a solution for me.
 
Thx you a lot for all you done !
 

1 Answers
kade
answered 8 years ago

Maybe someone will be helped by this solution.After hours of searching i have found a solution based on this post
http://dreamdare.org/tips-tricks/how-to-fix-wordpress-custom-post-type-permalink-404-error/
In dw-question-answer.php
add “flush_rewrite_rules();”
after this line :

register_post_type( 'dwqa-question', $question_args );Result :register_post_type( 'dwqa-question', $question_args );
flush_rewrite_rules();

it's ok now for me !
Dominic Staff
replied 8 years ago

Hi, Awesome ! I I appreciate it.

Powered by DW Question & Answer Pro