Easy native HTML5 forms for WordPress. Version 1.5 is unmaintained, but works without issue. 2.0 has been rewritten from the ground, and can be found at https://github.com/libreform/libreform
This makes form CPT unpublic and introduces a new way to have the previews. It's still very much WIP and proof-of-concept level, but basically works.
We check on template_include filter if there is preview GET parameter, use theme default page template and modify the page title with the_title and content with the_content filters. This way we ensure that proper theme template is used and styles do not break badly.
What I need to test, is what happens when frontpage has it's own template.
This makes form CPT unpublic and introduces a new way to have the previews. It's still very much WIP and proof-of-concept level, but basically works.
We check on
template_include
filter if there is preview GET parameter, use theme default page template and modify the page title withthe_title
and content withthe_content
filters. This way we ensure that proper theme template is used and styles do not break badly.What I need to test, is what happens when frontpage has it's own template.