Please or Register to create posts and topics.

Transfer a Form to a Forum

I’m trying to make a Application out of form and once they hit submit, I want it to got to a certain forum topic. Im not sure if you able to do this or how much work it would be but it would be greatly appreciated.

Hello @thefallen47

Unfortunately, such an implementation is not possible without adding a custom implementation because as far as I understand you want to combine two completely different systems (an own form which sends the input to the forum).

If you have coding-experience you should be able to add the content of the form – after processing it to some text – as a topic by using the following function:

global $asgarosforum;
$asgarosforum->content->insert_topic($forum_id, $name, $text, $author_id, $uploads);

After it you have to make a redirect to this topic by using the wp_redirect() function:

https://developer.wordpress.org/reference/functions/wp_redirect/

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!