Just prior to WP 3.0 I created a rideshare board that uses GF as the submission engine. Rideshare was a category of posts and a series of custom fields stored the data. Even finding a solution to doing query_post loops based on multiple custom field values before it was part of core (http://idealienstudios.com/blog/wordpress/custom-field-query-quandry/).
I'm looking at updating that code to become a plugin that others running WP + GF could leverage. Changing it to a custom post type and having dropdown field entries get populated from tags should be easy. Have some other ideas / questions that I'm hoping you could share thoughts on.
- Custom validation as a plugin indicates that I will have a problem with any custom validation involved out of the functions.php file. I don't have any right now, but curious what recommendation would be if this comes up.
- Import by code on plugin activation? The easy option on importing the rideshare form is to have the user import my exported form xml and then add it via the post / page editor to whatever page they want the submission form on. Do you have any snippets / examples of automating the import / creation of a form from another plugin?
- The list of rideshares will be able to add to a page by short-code or a php function call into desired template. I have some ideas for doing more advanced filtering of rides like this jQuery quicksand portfolio that might be incorporated once the heavy lifting is done.
Any other thoughts / tips about doing dev related to GF as a plugin maintaining separation from the theme files as much as possible would be greatly appreciated.