Good day, colleagues. They needed to mark up forms and insert them into wordpress. Forms laid out, but turned out to be used the theme is not friendly with bootstrap, I had to steal the right styles from bootstrap. It sort of did appear as it should, then I started the whole thing to integrate into wp myself and was faced with a problem: a static page created using the wysiwyg editor, you can, of course, and your html code is to prescribe, but each new row is enclosed in P and my whole layout goes to hell. The actual question of how to avoid it? My head spins only one option - to be hard-coded into the database, but there is the problem of editing a page, because if you edit and save the page, then wysiwyg again frame my form unnecessary and harmful P. What to do? How to be?
Donnie_Rodriguez answered on September 19th 19 at 13:14
We can offer you a couple of options.
1. To use a plugin for forms (there are many)
2. To write your own plugin (gemorno)
3. If you do not need to frequently change shape, they can be placed in a separate php files, then these files is to connect with the get_template_part in the templates. You will be able to connect the form only on certain pages.
4. Install TinyMCE and disable automatic setting in the settings