• kadaj

    (@aldabogskie)


    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!
    https://prntscr.com/fc6rtr

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author DesignWall

    (@designwall)

    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 : https://mysite/discussion-forum/
    exit( wp_safe_redirect( home_url() .’discussion-forum/’ ) );

    Thread Starter kadaj

    (@aldabogskie)

    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

    (@aldabogskie)

    Hello!

    I still cant solve my problem

    • This reply was modified 7 years, 5 months ago by kadaj.

    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 : https://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.