Title: Submit a question
Last modified: May 26, 2017

---

# Submit a question

 *  [kadaj](https://wordpress.org/support/users/aldabogskie/)
 * (@aldabogskie)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/submit-a-question-2/)
 * How can i redirect to main page or custom page after submitting a question? I
   tried to edit the core files but i failed.
 *  I suspected the function “wp_nonce_field” generating the “_wp_http_referer” 
   but i cant seems to manage how to redirect the submit button to custom page after
   submitting a question.
 * Source: plugins/dw-question-answer/templates/question-submit-form-php
 * Please help me thanks!
    [http://prntscr.com/fc6rtr](http://prntscr.com/fc6rtr)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [DesignWall](https://wordpress.org/support/users/designwall/)
 * (@designwall)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/submit-a-question-2/#post-9183099)
 * Hi mate,
 * Please open in the inc folder of the plugin and find the line 484 to change the
   link you want to redirect to.
    Ex: like this is my url : [http://mysite/discussion-forum/](http://mysite/discussion-forum/)
   exit( wp_safe_redirect( home_url() .’discussion-forum/’ ) );
 *  Thread Starter [kadaj](https://wordpress.org/support/users/aldabogskie/)
 * (@aldabogskie)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/submit-a-question-2/#post-9207234)
 * I’m here inside of /plugins/dw-question-answer/inc but there is no “question-
   submit-form-php” inside of /inc/ folder. I am using v1.4.5 plugin
 * Thank you for your time!
 *  Thread Starter [kadaj](https://wordpress.org/support/users/aldabogskie/)
 * (@aldabogskie)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/submit-a-question-2/#post-9228031)
 * Hello!
 * I still cant solve my problem
    -  This reply was modified 8 years, 11 months ago by [kadaj](https://wordpress.org/support/users/aldabogskie/).
 *  [itspriyanka](https://wordpress.org/support/users/itspriyanka/)
 * (@itspriyanka)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/submit-a-question-2/#post-9234035)
 * Hi,
 * I have the same question. In your answer, you have not mentioned which file needs
   to be modified:
 * > Please open in the inc folder of the plugin and find the line 484 to change
   > the link you want to redirect to.
   >  Ex: like this is my url : [http://mysite/discussion-forum/](http://mysite/discussion-forum/)
   > exit( wp_safe_redirect( home_url() .’discussion-forum/’ ) );
 * Please let me know the files inside inc folder that has this code.
 * Thanks!
    Priyanka

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Submit a question’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dw-question-answer_fefdf9.svg)
 * [DW Question & Answer](https://wordpress.org/plugins/dw-question-answer/)
 * [Support Threads](https://wordpress.org/support/plugin/dw-question-answer/)
 * [Active Topics](https://wordpress.org/support/plugin/dw-question-answer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dw-question-answer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dw-question-answer/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [itspriyanka](https://wordpress.org/support/users/itspriyanka/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/submit-a-question-2/#post-9234035)
 * Status: not resolved