Image Upload Form is Disabling Comment Addition

Well, this is definitely a little hackish but what I ended up doing was changing the action on the form to “[mysite url]/wp-comments-post.php”. Then I took advantage of a few action hooks in wp-comments-post.php to hijack that page: add_action(‘pre_comment_on_post’, array($this, ‘process_image_upload’)); And if anyone is curious as to how I wrote the process_image_upload function (which … Read more

Passing values by form to create a query

It all depends on how you’re trying to do it. When it comes to filtering results, i usually setup the form to use $_GET and filter the results when the page loads again: if (isset($_GET[‘term’])) { $term = $_GET[‘term’]; } else { $term = ‘defaultTerm’; } if (isset($_GET[‘childterm’])) { $childterm = $_GET[‘childterm’]; } else { … Read more

Form submit from modal window to parent window

Use the parent method to pass data back to your meta field. Create a JS function to handle the passing of data from Thickbox to the meta field: function foo_interstitial(data){ $(‘.form-field-selector’).val(data); } Add a submit handler to your thickbox instance that passes to the parent.foo_interstitial() function. $(‘.thickbox-submit-selector’).submit(function(){ var _value_to_pass = $(‘.field-to-pass-selector’).val(); parent.foo_interstitial(_value_to_pass); });

County Finder form/plugin?

Dadra, A bit off the WordPress topic, but you may want to consider using the US Census API to do your lookups. Integrating this into WP should be pretty simple, could be done by zipcode, city name, etc… and could be done with and AJAX callback all on one page. Example of what I think … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)