Urban Giraffe Support | Filled In
Forms not in post (or page) content
I would like to know if it is possible to use Filled In with forms that are not part of the post or page content, but are in one of the theme files. In particular, I want a contact form that is in the sidebar of my site (sidebar.php in my WP theme).
I have tried the following, with some success, but not full functionality:
<?php ob_start(); ?>
<form id="contact" method="post">
<some_form-related_elements />
</form>
<?php
$content = ob_get_clean();
$fi = new Filled_In();
echo $fi->pre_load('');
$content = $fi->the_content($content);
echo $content;
?>
I recognize the ugliness of doing it this way, but I thought I'd try it. I am able to receive submissions, but do not see the results of my filters and result processors.
Any ideas how to do this better? At all?
Thanks,
David Benton
Responses
Posted 5 months ago by Key Master
Hi David, if you take a look through the Filled In comments I recall someone else wanting to do the same thing and a solution was found.
Reply
You must log in to post.