$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>.html form added to a page|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

.html form added to a page

matteradmin10PV0评论

I have an external html form that I would like to add to my wordpress developed site.

The form links to other areas in the business like the cashiers, so when customers fill the form out, the content is added to their system.

I have seen different ways such as adding raw html and adding as media however these do not allow me to edit the form as the visual composer stops working after I paste in the html code.

What other options do I have if any.

I have an external html form that I would like to add to my wordpress developed site.

The form links to other areas in the business like the cashiers, so when customers fill the form out, the content is added to their system.

I have seen different ways such as adding raw html and adding as media however these do not allow me to edit the form as the visual composer stops working after I paste in the html code.

What other options do I have if any.

Share Improve this question asked Aug 28, 2018 at 16:15 Chris McConneyChris McConney 16 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 0

If you want to have a form on a page, there are plugins that allow that; a popular one is "Contact Form 7". But if you want a specific 'action' page to fire when the submit button is used, then it might be best to create a page template.

The template could include the form code and the 'action' of the form tag could call another page (and template) that would process the form then display a page.

Learn more about templates here: https://codex.wordpress/Templates .

And it would be best to put the templates in a Child Theme (if you aren't using your own custom theme), so any theme updates don't overwrite your changes. (Although custom-written templates aren't overwritten on the theme update, unless you have changed a theme-supplied template.)

I figured out that you can not directly have a html form display correctly on a page. To work around this, I added the html document to the media and then linked directly to this using the generated hyperlink.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far