Hi!
I have a simple form with 2 fields: a multiple answer with Yes and No values and a hidden IP address.
This form was made with generic labels to be duplicated every time it's needed in a new post.
In every post where a form was included, I need to pull the results and display them and for this purpose, I think it would be better to manipulate the query and results directly in the template, lets say in the single post php file.
I would appreciate your help in the following as I've found no answer in the docs and forum:
- the best way to determine if the current post has a form (so that it executes or ignores the code bellow);
- if it has a form, getting its ID and;
- querying the database in a sensible way to take full advantage of a caching plugin like W3 Total Cache;
Thanks for your help!
Ricardo